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

R Studio package installation failure with Windows 7 #315

Open
probprob14 opened this issue Apr 11, 2017 · 3 comments
Open

R Studio package installation failure with Windows 7 #315

probprob14 opened this issue Apr 11, 2017 · 3 comments

Comments

@probprob14
Copy link

image
I tried to import data set, and my RStudio said I should install readr and RCPP. So I allowed them to be installed, but the following message popped up. I wonder what I should do with this. I'm a Windows 7 user.

@sfweller
Copy link

This could be a problem in R due to your current locale settings in R.

Can you type:

Sys.getlocale()

and paste your current settings into this discussion thread?

Also, your output above does not indicate what exact R commands you ran to try and install these packages. Can you paste the exact commands you ran in your reply? It looks like you are trying to install a Windows binary zip file for a R package, based on the output shown above.

There are a number of ways to install a R package binary on Windows. How are you doing this?
Via the 'Packages' menu, or via 'install.packages()' function or via 'R CMD INSTALL'?

I would try installing the package through another means, if you can't get the first to work.

For example, to install windows binary package from command-line via 'install.packages()' you can download the binary zip file from CRAN to your local PC, for example:

Rcpp URL:
'https://mran.revolutionanalytics.com/snapshot/2015-11-30/bin/windows/contrib/3.2/Rcpp_0.12.2.zip'

Then, to install via 'install.packages()' in R console window:
install.packages('C:/Rdownloads/Rcpp_0.12.2.zip', repos = NULL, type = 'win.binary')

Try this, and let me know if it works for you.

Stephen Weller
Microsoft R Open Product Team

@probprob14
Copy link
Author

probprob14 commented Apr 12, 2017

Hi! I got ["LC_COLLATE=English_Belize.1252;LC_CTYPE=English_Belize.1252;LC_MONETARY=English_Belize.1252;LC_NUMERIC=C;LC_TIME=English_Belize.1252"] when I typed in Sys.getlocale() as you requested.

I clicked the button 'Import Dataset' - 'From CSV' option, then the following message popped up:
image

So it seems like I tried to install a R package binary via the 'Packages' menu.

When I use the install.packages(), I also get the message [Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open destfile 'C:\Users\정연윤\AppData\Local\Temp\RtmpQL7OMl/downloaded_packages/tibble_1.3.0.zip', reason 'No such file or directory'] as well...

@sfweller
Copy link

Thanks for including the screenshot, This definitely looks like a locale settings problem.

I suggest that you try running these lines in your Rscript, before running your code:
Sys.setlocale("LC_MESSAGES", 'en_GB.UTF-8')
Sys.setenv(LANG = "en_US.UTF-8")

For a discussion of similar problems, you may also want to take a look at this stackoverflow thread.
I don't think that this is an issue specific to Microsoft R Open, but a general limitation in language specific settings in R. Hopefully, the above workaround will work for you.

http://stackoverflow.com/questions/16347731/how-to-change-the-locale-of-r-in-rstudio

Stephen Weller

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

No branches or pull requests

2 participants