-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgstats does not install ctags or gtags properly on Windows #65
Comments
Thanks so much@willgearty! The most helpful step would be if you could submit a PR with fixes for widows. (The |
@willgearty since we are both on Windows, did you also observe the "00LOCK-" file mentioned in #64? ( |
@schneiderpy I did not observe that issue when installing. I've found that uninstalling the package ( @mpadge I'm not too familiar with installing external software as part of R packages, but I'll see if I can find some time to put together a PR. |
Hello @mpadge .. do you have any news on this issue? |
Just wanted to echo the issues that @schneiderpy was experiencing in #63 and #64. Upon installing and loading
pkgstats
, I also got this error:I further investigated the issue, and found that the
.onAttach
function never passes this check:pkgstats/R/zzz.R
Lines 4 to 6 in 8d2959a
This is because
ctags_test()
does not return a boolean value, it throws an error, which causes.onAttach
to end abruptly, never making it past line 6. Therefore, the package never prompts the user to install ctags.I tried installing ctags using
install_ctags_windows()
, but this also didn't work. The zip file is downloaded correctly, but then the code makes a folder in the working directory instead of the package's directory:pkgstats/R/zzz.R
Lines 53 to 55 in 8d2959a
Then it errors because it tries to make a file in a folder that doesn't exist:
pkgstats/R/zzz.R
Lines 56 to 60 in 8d2959a
Now, if you manually make this folder, it will correctly unzip the file, but then it doesn't add the folder to the system PATH, which means
Sys.which("ctags")
, and thushas_ctags()
, never works.It also appears that there is currently no functionality in the package to install gtags on Windows (the only function is only for Unix), even once you have ctags installed and on the PATH. I was able to find a compiled version of gtags (GLOBAL?) for Windows, but it was on a somewhat sketchy site, and there were no instructions in
pkgstats
to affirm whether I was installing the correct software.Ultimately, I have manually installed both pieces of software, but now I'm getting this error:
But it seems that
pkgcheck
is now working (why I installedpkgstats
in the first place), so I'm done debugging for now.This package seems great, but right now the installation process is quite a chore, especially without any documentation to guide the user. Hope this all helps! (I'm happy to help test on Windows if that is a limiting factor)
The text was updated successfully, but these errors were encountered: