-
Notifications
You must be signed in to change notification settings - Fork 758
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
install_github fails with System command Rcmd.exe failure (rtools properly installed) #2315
Comments
This sort of question is a better fit for https://community.rstudio.com. Do you mind asking it over there? (You might want to read https://www.tidyverse.org/help/ first to maximise your chances of getting a good answer) This issue tracker is for bugs in the devtools code itself, not for general configuration help. The community sites are much better avenues for that. |
If anyone who sees this has a potential solution, I've posted this to RStudio Community here. |
Hi @avakiai |
Hi there!
I'm sorry to report that I never did solve the problem. I went even further
than what I described in the post, and the only thing I can think of is
that the problem was due to a very low-level security blockage (my computer
was given to me from an institute pre-loaded with some
administrator privileges that only our IT department could crack - I think
at some very deep level that prevented the computer from doing certain
things even when things are done with admin privileges). I'm sorry to not
be of more help, but I hope you find a solution to your problem!
Best,
Ava
…On Fri, Jul 30, 2021 at 10:55 AM haiyonghe ***@***.***> wrote:
Hi @avakiai <https://github.com/avakiai>
Hello, I also encountered this problem, have you solved this bug,
sincerely waiting for your reply
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2315 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHIJKR4WKLE5D7VUKE7WUB3T2JSIZANCNFSM4XDQVA2A>
.
|
I also run into this issue and the thread on the R forum is closed and does not accept replies anymore. If any of you found a solution that does not involve reinstalling your entire OS, please let me know. |
Hi there!
Sorry for the very late reply.
I'm sorry to report that I never did solve the problem. I went even further
than what I described in the post, and the only thing I can think of is
that the problem was due to a very low-level security blockage (my computer
was given to me from an institute pre-loaded with some
administrator privileges that only our IT department could crack - I think
at some very deep level that prevented the computer from doing certain
things even when things are done with admin privileges). I'm sorry to not
be of more help. In hindsight I think the hard reset is probably the most
pain-free solution.
Best,
Ava
…On Sat, Sep 4, 2021 at 10:16 PM Joel Ostblom ***@***.***> wrote:
I also run into this issue and the thread on the R forum is closed and
does not accept replies anymore. If any of you found a solution that does
not involve reinstalling your entire OS, please let me know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2315 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHIJKR4GH7C6LOQSCSEWSIDUAJ5BVANCNFSM4XDQVA2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi there |
Hi there
I'm sorry to report that I never did solve the problem. I went even further
than what I described in the post, and the only thing I can think of is
that the problem was due to a very low-level security blockage (my computer
was given to me from an institute pre-loaded with some
administrator privileges that only our IT department could crack - I think
at some very deep level that prevented the computer from doing certain
things even when things are done with admin privileges). I'm sorry to not
be of more help. In hindsight I think the hard reset is probably the most
pain-free solution.
Best,
Ava
…On Wed, Nov 3, 2021 at 2:37 PM Guido Berning ***@***.***> wrote:
Hi there
I have the same issue.
After deinstallation of RStudio by admin and reinstallation of it by my
local user by the *.tgz file I run into this problem.
I can not reset my system ;-)
and have no admin authorization.
Any suggestions?
Best,
Guido
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2315 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHIJKR3OSN3GMQA4S3MYSHDUKE3K7ANCNFSM4XDQVA2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I am unable to instill R packages using GitHub |
Just in case anyone is having the same problem and is stumbling across this thread: I came across this thread because I had the exact same problem. Installation from github was not possible, no matter what I tried, I had the "System command 'Rcmd.exe' failed" Error. I finally found the solution here: https://copyprogramming.com/howto/problem-with-rcmd-exe-when-installing-packages After removing (or renaming at first for safety reasons) the registry key \HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor\AutoRun the installation via devtools and github is finally working again! I have struggled with this problem for so long. Hopefully this post can help someone coming across this thread in the future |
I don't have such key, but I have the problem with the Rcmd.exe failure. Windows is ridiculous 😠 In my case the issue only occurs with |
When Sys.setenv(PKG_BUILD_VIGNETTES=TRUE)
pak::pkg_install("some/github-package") Ref: r-lib/pak#71 (comment) |
Hi there,
I wonder if anyone can help me solve an issue I'm having with install_github.
Whether I use
remotes::install_github
ordevtools::install_github
, I get the following error message that reads "System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr":I thought this had to do with my path specifications and devtools/rtools, so in the end I did a fresh install of rtools and the whole setup procedure. Here's my system and path specs, and what I did:
Downloaded Rtools (rtools40-x86_64.exe) from https://cran.r-project.org/bin/windows/Rtools/
Added Rtools to my path, which now looks like:
For good measure, created an .Renviron file in C:\Users\Ava\Documents, that includes the line PATH=${RTOOLS40_HOME}\usr\bin;${PATH} Exactly as shown - but I wasn't sure if I should have pasted the path to Rtools in the first variable...)
Checking that Rtools is recognized:
Yet, calls to devtools still fails with the same error message. I also don't understand this since Rcmd.exe is indeed on the path, at
C:\Program Files\R\R-4.0.2\bin\x64
Now, it turns out the package I'm trying to download might not be available for R 4.0.2 (which I only found out by trying:
But the error persists, since other packages that are available for 4.0 throw the same error:
Any ideas on how to resolve this?
Update: Thinking it might have to do with permissions to access the temporary directiroy, I tried running this from RStudio opened as admin, but problem persisted.
Update 2: Following up, I also tried adding a new temporary directory, and specifying this in both the .Renviron file and a new Renviron.site in C:\Users\Ava\Documents (TMPDIR = C:\rtemp). RStudio run as admin still threw same errors.
Update 3: Thinking it may have come from the fact that I had two versions of R installed (3.6 and 4.0), I uninstalled R 3.6, restarted R, but same error when I tried with
devtools::install_github("rmcelreath/rethinking")
.Update 4: I tried adding the Rcmd.exe file directly to the path, still no luck:
Update 5: I remove Anaconda from my path, thinking a possible duplicate of R executable might be causing the problem, still no luck.
Thanks,
The text was updated successfully, but these errors were encountered: