R Package Installation Error
Contents |
Posted on February 12, 2013 by Jonathan Callahan This entry is part 5 of 20 in the series Using RThe post titled Installing Packages described the basics of package installation with R. unable to install packages in r The process is wonderfully simple when everything goes well. But it can be maddening
Error In Install.packages Object Not Found
when it does not. Error messages give a hint as to what went wrong but do not necessarily tell you how to r unable to install packages not writable resolve the problem. This post will collect some of the error messages we've encountered while installing R packages and describe the reasons for the error and the workarounds we've found. 1) Older version of R Warning
Error In Install.packages : Updating Loaded Packages
message:
In install.packages(c("sp")) : package ‘sp’ is not available This is the message that you get when the CRAN package you're interested in requires a more recent version of R than you have. Remember, the default behavior of install.packages() is to grab the latest version of a package. In this case you have to poke around in the "Old sources" link on the CRAN page for that package and use trial-and-error r there is no package called to find an older version of the package that will work with your version of R. You should start by determining what version of R you have: R --version R version 2.8.1 (2008-12-22) 12 R --versionR version 2.8.1 (2008-12-22) This version of R was released at the end of 2008 and any version of the "sp" package released in 2008 should work. At least some of the 2009 releases should also work. Perusing the sp archive, we might try installing version 0.9-37, the last of the 0.9-3x series which was released in May of 2009: wget http://cran.r-project.org/src/contrib/Archive/sp/sp_0.9-37.tar.gz sudo CMD INSTALL sp_0.9-37.tar.gz ... # Success! 1234 wget http://cran.r-project.org/src/contrib/Archive/sp/sp_0.9-37.tar.gzsudo CMD INSTALL sp_0.9-37.tar.gz...# Success! 2) Unable to execute files in /tmp directory ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' By default, R uses the /tmp directory to install packages. On security conscious machines, the /tmp directory is often marked as "noexec" in the /etc/fstab file. This means that no file under /tmp can ever be executed. Packages that require compilation or that have self-inflating data will fail with the error above. One such package is RJSONIO. The solution is to set the TMPDIR environment variable which R will use as the compilation directory. For csh shell: mkdir ~/tmp setenv TM
Sign in Pricing Blog Support Search GitHub This repository Watch 40 Star 82 Fork 26 RevolutionAnalytics/RRO Code Issues 38 Pull requests 2 Projects 0 Wiki Pulse Graphs New issue "not writable" error when installing new packages on
R Install Packages Not Working
3.2.0 #144 Closed revodavid opened this Issue May 19, 2015 · 9 comments
Unable To Access Index For Repository R
Labels None yet Milestone v3.2.0.0 Assignees nathansoz 3 participants revodavid commented May 19, 2015 I get an error when how to install prob package in r attempting to install packages: > install.packages("stringr") Warning in install.packages("stringr") : 'lib = "C:/Program Files/RRO/R-3.2.0/library"' is not writable Error in install.packages("stringr") : unable to install packages > Revo.version _ major 3 minor 2.0 build id 58 nathansoz was http://mazamascience.com/WorkingWithData/?p=1185 assigned by revodavid May 19, 2015 revodavid added the Bug - major label May 19, 2015 revodavid added this to the v3.2.0.0 milestone May 19, 2015 revodavid added the OS Windows label May 19, 2015 nathansoz commented May 19, 2015 This is not a bug. As a normal user you would not have write access to anything in C:\Program Files. When I try this, it prompts me to make a personal library. If https://github.com/RevolutionAnalytics/RRO/issues/144 you want to install to the system library, you must run R or Rgui as administrator. nathansoz closed this May 19, 2015 nathansoz added wontfix and removed Bug - major labels May 19, 2015 nathansoz commented May 19, 2015 R windows FAQ documents this behavior: http://cran.r-project.org/bin/windows/base/rw-FAQ.html 2.24 Does R run under Windows Vista/7/8/Server 2008? ... If you install R as a standard user into your own file space and use it under the same account, there are no known permission issues. If you use the default Administrator account (without ‘admin approval mode’ being turned on) and install/update packages (in the system area or elsewhere), no issues are known. If you use an account in the local Administrators group in ‘admin approval mode’ (which is the intended norm under these OSes), installation will make use of ‘over-the-shoulder’ credentials. You will run into problems if you try installing (including updating) packages in the main R library. (It would be nice if at that point R could use over-the-shoulder credentials, but they apply to processes as a whole. Vista and later disallow creating .dll files in the system area without credentials.) There are several ways around this. Run R with Administrator privileges in sessions where you want to install packages. (Do so by right-clicking on the R shortcut and select
by over 573 bloggers. There are many ways to follow us - By e-mail: On Facebook: If you are an R blogger yourself you are invited to add your own R content feed to this https://www.r-bloggers.com/using-r-package-installation-problems/ site (Non-English R bloggers should add themselves- here) Jobs for R-usersStatistical Analyst @ Rostock, Mecklenburg-Vorpommern, GermanyData EngineerData Scientist – Post-Graduate Programme @ Nottingham, EnglandDirector, Real World Informatics & Analytics Data Science @ Northbrook, Illinois, U.S.Junior statistician/demographer for UNICEF Popular http://stackoverflow.com/questions/19407092/r-not-finding-package-even-after-package-installation Searches web scraping heatmap twitter maps time series animation boxplot shiny hadoop ggplot2 how to import image file to R trading finance latex eclipse rstudio excel SQL ggplot quantmod knitr googlevis PCA market research rattle regression map tutorial coplot unable to rcmdr Recent Posts Election 2016: Tracking Emotions with R and Python Data science for executives and managers The Worlds Economic Data, Shiny Apps and all you want to know about Propensity Score Matching! August Package Picks Slack all the things! Warsaw R-Ladies Notes from the Kölner R meeting, 14 October 2016 anytime 0.0.4: New features and fixes 2016-13 ‘DOM’ Version 0.3 Building a package automatically The new R Graph Gallery Network Analysis Part 3 Exercises Annotated Facets with ggplot2 unable to install Paper published: mlr - Machine Learning in R a grim knight [cont’d] Other sites Jobs for R-users SAS blogs Using R — Package Installation Problems February 12, 2013By Jonathan Callahan (This article was first published on Working With Data » R, and kindly contributed to R-bloggers) This entry is part 3 of 12 in the series Using R The post titled Installing Packages described the basics of package installation with R. The process is wonderfully simple when everything goes well. But it can be maddening when it does not. Error messages give a hint as to what went wrong but do not necessarily tell you how to resolve the problem. This post will collect some of the error messages we've encountered while installing R packages and describe the reasons for the error and the workarounds we've found. 1) Older version of R Warning message:
In install.packages(c("sp")) : package ‘sp’ is not available This is the message that you get when the CRAN package you're interested in requires a more recent version of R than you have. Remember, the default behavior of install.packages() is to grab the latest version of a package. In this case you have to poke around in the "Old sources" link on the CRAN page for that package and use trial-and-error to find an older version of the package that will work with your version of R. You shoul
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up R not finding package even after package installation up vote 21 down vote favorite 5 I have always worked with the zoo package, that I have installed a long time ago. Today, I created a new R script, and ran library(zoo) and got the following error: > library(zoo) Error in library(zoo) : there is no package called ‘zoo’ Odd.. Still, I tried reinstalling the package using install.packages("zoo"), and get the following: > install.packages("zoo") Installing package(s) into ‘C:/Users/U122337.BOSTONADVISORS/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.15/zoo_1.7-10.zip' Content type 'application/zip' length 874474 bytes (853 Kb) opened URL downloaded 853 Kb package ‘zoo’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘zoo’ The downloaded binary packages are in C:\Users\U122337.BOSTONADVISORS\AppData\Local\Temp\Rtmp404t8Y\downloaded_packages When I try uploading the package, I get the error again that the zoo package doesn't exist!!! I have no idea what's happening! I exited the GUI and restarted it, same problem. I have always worked with this package, and I have no idea why this is happening now! Any help please? Thanks! r install package zoo share|improve this question asked Oct 16 '13 at 15:10 Mayou 2,94362655 add a comment| 3 Answers 3 active oldest votes up vote 21 down vote accepted Do .libPaths(), close every R runing, check in the first directory, remove the zoo package restart R and install zoo again. Of course you need to have sufficient rights. share|improve this answer answered Oct 16 '13 at 15:19 statquant 4,85324075 Worked great! Thanks. Would you know what that happened in the first place? –Mayou Oct 16 '13 at 15:26 absolutely no idea... –statquant Oct 16 '13 at 15:28 :) no problem! Thanks anyway! –Mayou Oct 16 '13 at 16:09 add a comment| up vote 1 down vote I had a similar problem when calling an Rscript from Python despite that on the command line everything was fine. I included .l