Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I am getting this response when trying to install the R package:
>installed.packages("reshape2")
Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances
License License_is_FOSS License_restricts_use OS_type Archs MD5sum
NeedsCompilation Built
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
The function you have called is not used to download packages.
installed.packages returns information about packages available to R. The first argument defines places where the function will be looking for packages. Unless there is reshape2 directory in your current working directory that happens to contain some valid packages, the function will return nothing.
If you want to download and install package, use install.packages:
install.packages("reshape2")
If you want to download package (but not install it), use download.packages.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I'm trying to create a heatmap using gplots, but can't install RColourBrewer.
I think I'm using the latest version of R. Do I have to uninstall it and reinstall an older version of R that is compatible with RColourBrewer?
install.packages("RColourBrewer")
Installing package into ‘C:/Users/Melissa/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘RColourBrewer’ is not available (for R version 3.6.1)
Warning message:
package ‘RColourBrewer’ is not available (for R version 3.6.1)
>
RColorBrewer not RColourBrewer
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I am using R 3.4.3 and am unable to install the caret package (Error in install.packages(caret) : object 'caret' not found). I have tried other repositories and CRAN mirrors. I have tried installing github and remotes and devtools with no luck. Any ideas on how I can install this package? I have tried install.packages("caret") with the following error message: Warning in install.packages("caret") :
'lib = "C:/Program Files/R/R-3.4.3/library"' is not writable
Error in install.packages("caret") : unable to install packages. I have internet connectivity and have tried installing from the menu without luck.
You need " quotes
install.packages("caret")
and to use it
library(caret)
Because you missed the quotes around "caret"
install.packages("caret") # RIGHT - use a string name
install.packages(caret) # WRONG - it thinks caret is some string variable containing the name of the actual package
OLD ANSWER
- Installing from CRAN from command-line or GUI should work, but if for whatever reason it doesn't (might be your intranet, or connectivity, or network security), you can...
- Download the tarball (with wget/ browser/ ftp) then proceed as per Install R Packages without internet
- See also How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning?
for fallbacks (compile from source, use older version, etc).
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have installed R on my Linux machine. Whenever I type
> library(ps)
I get
Error in library(ps) : there is no package called ‘ps’
How can I check if sp package (R software) is installed on my Linux and how can I install it?
You can check if the package is installed in R with (require(ps)).
To install the package use install.packages("ps")
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I am trying to install xlsx via CRAN for R.
install.packages("xslx")
# Warning message:
# package 'xlsx' is not available (for R version 3.1.2)
Does this mean I need to get an older version of R?
OS X Yosemite 10.10
R 3.1.2 GUI 1.65 Mavericks build
Thanks!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I was using R 2.12.1 on my desktop and recently the R got updated to the new version R 2.13.0 which is not I want. Is there anyway to use the R 2.12.1 again and how can I use that?
packages.ubuntu.com seems to have R 2.11.2 for maverick, so that is no help. You may try to see if the Michael's PPA site on launchpad has a rollback feature so that you can get that version there. (Edit: Doesn't seem so. Hmpf.)
Barring that, I would grab the Debian source for 2.12.2 (using the snapshot.debian.org site which has all previous Debian version of r-base and build replacement .deb binaries from that.
Or ... can't you upgrade BioC to a version that works with R 2.13.0? Didn't BioC just have a release too?
Lastly, by far the easiest is to
uncomment the entry for CRAN in /etc/apt/sources.list
update, and
install the most recent Ubuntu version, which is 2.11.2 as shown above.
Ubuntu's next release will get presumably 2.12.* too, so you could also try upgrading to Ubuntu 11.4 now (but note that it is not yet released).
If it was a recent update, it's likely still on your system:
/var/cache/apt/archives