Skip to content
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 Error #247

Closed
bcdp5 opened this issue Jul 23, 2013 · 22 comments
Closed

Install Error #247

bcdp5 opened this issue Jul 23, 2013 · 22 comments
Labels

Comments

@bcdp5
Copy link

bcdp5 commented Jul 23, 2013

Hi,
I state i'm totally new in gitHub, R and Slidify so please be patient.

Here's my issue: when i try to install Slidify in R it returns the following error:

library(devtools)
install_github('slidify', 'ramnathv')
Installing github repo(s) slidify/master from ramnathv
Downloading slidify.zip from https://github.com/ramnathv/slidify/archive/master.zip
Installing package from C:\Users\matte_000\AppData\Local\Temp\Rtmp8wd5GB/slidify.zip
Installing slidify
"C:/Program Files/R/R-2.15.3/bin/x64/R" --vanilla CMD INSTALL
"C:\Users\matte_000\AppData\Local\Temp\Rtmp8wd5GB\slidify-master"
--library="C:/Users/matte_000/Documents/R/win-library/2.15" --with-keep.source --install-tests

"C:\Program" non Š riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
Errore: Command failed (1)

I suppose there's a problem with my directory name due to the space between "Program Files".
How can i fix it and start enjoying slidify?

@trinker
Copy link

trinker commented Jul 23, 2013

Can you provide the results of sessionInfo()? It also may be easier to post the error message in English as the Italian translation I did does not tell what Š is.

@bcdp5
Copy link
Author

bcdp5 commented Jul 23, 2013

Sorry here's the translation in eng of the error:

"C:\Program" is not known as an internal or external command,
an exe or a batch.

Moreover here's the result of sessionInfo()

R version 2.15.3 (2013-03-01) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252 [4] LC_NUMERIC=C LC_TIME=Italian_Italy.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] devtools_1.3 loaded via a namespace (and not attached): [1] digest_0.6.3 evaluate_0.4.4 httr_0.2 memoise_0.1 parallel_2.15.3 RCurl_1.95-4.1 [7] stringr_0.6.2 tools_2.15.3 whisker_0.3-2

@bcdp5
Copy link
Author

bcdp5 commented Jul 25, 2013

@ramnathv
Copy link
Owner

It is a Window's related issue, which unfortunately I can't help with since I don't own a Window's machine. Here is a SO question where a similar error is encountered and a potential answer is proposed. Let me know if you can try it and if it resolves your issue.

@bcdp5
Copy link
Author

bcdp5 commented Jul 26, 2013

I tried almost everything, but when I type the commands to install packages whether by script or by cmd, it returns the same error:

"C:\Program" 'R' is not recognized as an internal or external command, operable program or batch file
Error: Command failed (1)

Maybe it doesn't work with Windows OS?

@trinker
Copy link

trinker commented Jul 26, 2013

I'm a Windows 7 OS (and Linux) and can install. It sounds like maybe R isn't on your path.

@bcdp5
Copy link
Author

bcdp5 commented Jul 26, 2013

Wow. Can you help me fixing this issue?

@timelyportfolio
Copy link

Without a doubt, slidify works on Windows. It appears that R sits in a directory located at C:/Program Files/R/R-2.15.3/bin/x64/R. Perhaps it would help to see the messages from my working install.

Installing slidify
"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" --vanilla CMD INSTALL  \
...

So, it appears the unshortened Windows path is a big problem. Are you installing with RStudio? See http://support.rstudio.org/help/discussions/problems/807-rhome-returns-incorrect-string-with-spaces-under-windows if you have an old version.

What do you get when you?

R.home()

@bcdp5
Copy link
Author

bcdp5 commented Jul 26, 2013

Yeah it's a problem of the path.

Here's the result under Rgui and R Studio. Same results:

R Studio:

<script> > R.home() > [1] "C:/Program Files/R/R-3.0.1" Rgui: <script> > R.home() > [1] "C:/Program Files/R/R-3.0.1"

@trinker
Copy link

trinker commented Jul 26, 2013

I made a video tutorial on how to install R in C drive and set the path to include it. It can be found here. It's uploading to youtube so check back in a few hours.

You'll know this works if you open the windows command line and type R.exe If R starts up R is on the path.

@ramnathv
Copy link
Owner

Thanks @trinker and @timelyportfolio for your responses. Install issues on Windows are often the trickiest ones to tackle. Hopefully, this solves the problem.

@bcdp5
Copy link
Author

bcdp5 commented Jul 27, 2013

Well well well. Now it works!

To fix this issue you just need to:

uninstall R
re-install R/Rtools/Rstudio on C: (not C:\Program Files)
Go to your windows variables (Controll Panel)
Edit PATH field with the following path: C:\R\R-3.0.1\bin;C:\R\R-3.0.1\bin\i386;C:\R\R-3.0.1\bin\x64;

Thank you for support and special thanks to trinker for the vid

@ramnathv
Copy link
Owner

Perfect. Good to see that you were able to resolve it. Thanks again @trinker.

@yasminstro
Copy link

some of us don't have admin privileges to uninstall and reinstall R. what can we do to get past this problem? i downloaded and unzipped shinyapps manual. any suggestion?

@ramnathv
Copy link
Owner

ramnathv commented Oct 6, 2015

What is the problem you are facing?

@yasminstro
Copy link

Ramnath,

Thanks for your response. I have my ui.R and server.R files ready and would like to utilize shiny to display/share them
Now I'm trying to install Shinyapps but as other's have reported, I'm running into errors.

A bit info about my setup:
-I'm using RStudio with R version 3.2.2
-R is installed at: C:\Program Files\R

Here's the steps I take:

  1. install.packages("devtools") #works fine, no issues
    2a) I then try the Github trick (as well as different variations) as follows:
    2b) > devtools::install_github("rstudio/shinyapps") #this results in the error message below:

===error message:
Downloading GitHub repo rstudio/shinyapps@master
Error in curl::curl_fetch_memory(url, handle = handle) : Couldn't resolve host name

Apparently, this could be due to the fact that my R is install in C:\Program Files\R... instead of C:\R
The problem is that I don't have Admin privileges and IT was very adamant about installing it on C:\Program Files\R
I can't seem to get past this issue. Any thoughts or assistance?
Thanks!

@yasminstro
Copy link

FYI, I manually downloaded the master package, unzipped it and placed the folder into the ...\R\library

@ramnathv
Copy link
Owner

ramnathv commented Oct 6, 2015

That wont work, since it is the source package, whereas what needs to go into ..\R\library is the installed version.

The error message you are getting is not related to your R install, but your internet connection. Are you behind a corporate firewall?

@yasminstro
Copy link

not sure about the firewall but corporate environment so maybe yes. if firewall is responsible then why am i able to install all the other packages? curious

@yasminstro
Copy link

can you be a bit more clearer about this statement?:

"That wont work, since it is the source package, whereas what needs to go into ..\R\library is the installed version."

@yasminstro
Copy link

Oh, I mis-stated my first note. It's installed in C:\Program Files\R\library

@burgerga
Copy link

@yasminstro This is an error because devtools does not properly escape paths, please report here: r-lib/devtools#1275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants