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).
Related
This question already has answers here:
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
(18 answers)
Closed 12 months ago.
I am working with series data and want to count the number of local 'maxima' and 'minima' (i.e. peaks and troughs/oscillations) along each series. I want to use the 'Peaks' package for this but only get the following error:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Warning in install.packages :
package ‘Peaks’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
As suggested I installed rtools without any problems but it still returned the same error when I tried installing 'Peaks'. I have not found any information at the cran.r-project link and have also tried to install findpeaks but got the same error. I am not actually sure what version I am running on my desktop (how do you check?); but I have tried it also on Rstudiocloud, which I think is the latest version (4.1.2).I have also tried:
findPeaks(MaxMn, thresh=0)
findValleys(MaxMn, thresh=0)
but R couldn't find the function. I'm a little confused about whether it is a package or function and what I need to do to make it happen. Any suggestions would be greatly appreciated.
Peaks vignette: https://www.rdocumentation.org/packages/splus2R/versions/1.3-3/topics/peaks
After installing Rtools, you need to put it on the system PATH so that R can find it while trying to build a package from its source code. It's highly likely that in your case Rtools is installed but not on the system path.
You can find the latest details on the process of installing rtools, adding to path and verifying installation is correct from Rtools page (https://cran.r-project.org/bin/windows/Rtools/rtools40.html).
The package is no longer available on CRAN: "Archived on 2019-04-18 as check problems were not corrected despite reminders."
From googling "R detect peaks", it looks like there are a number of current packages you might be able to use, including pracma and peakPick. In addition to CRAN, this also feels like something the Bioconductor repository may have packages for.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
Simple question:
I'm on a Macbook Pro, Big Sur, R 4.1.0, following the documentation on installing tensorflow, and the install_tensorflow(method="conda",conda="~/opt/anaconda3/envs/r-reticulate/"), after telling me that I've now got a thousand conflicts, gives me the final error message:
Error: installation of 'python=3.7' into environment '/Users/me/opt/anaconda3/envs/r-reticulate' failed [error code 1]
Nothing in the documentation says that python 3.7 is a requirement, and as someone who is new to python, why in the world would the install_tensorflow() command try to install a new version of python AFTER it installs all of these required python modules?
The install_tensorflow() function has an argument where you have to tell it the version of conda you're using... not sure why, but it worked after adding this:
install_tensorflow(method = "conda", conda = "~/opt/anaconda3/envs/r-reticulate/", conda_python_version = "3.9")
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 running RStudio on Ubuntu 16.04. In attempting to load the tidyverse package with library(tidyverse), I get the following error:
Error: package or namespace load failed for ‘tidyverse’:
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: Function getThemeInfo not found in RStudio
getThemeInfo is a function in the rstudioapi package. Besides re-installing the tidyverse and rstudioapi packages, I've tried deleting my .rstudio-desktop folder, as well as re-installing both R and RStudio. Nothing has worked. I can still load the component tidyverse packages separately so it's not fatal, but it is annoying.
Any help would be much appreciated.
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
Hi have been trying to install the "vegan" package but I get errors:
>install.packages("vegan-package")
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘vegan-package’ is not available (for R version 3.1.2)
I have also tried this:
> install.packages("vegan_2.3-0.tar.gz", repos = NULL, type="source")
ERROR: dependency 'permute' is not available for package 'vegan'
* removing 'C:/Users/Documents/R/R-3.1.2/library/vegan'
Warning messages:
1: running command '"C:/Users/Documents/R/R-3.1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Documents\R\R-3.1.2\library" "vegan_2.3-0.tar.gz"' had status 1
2: In install.packages("vegan_2.3-0.tar.gz", repos = NULL, type = "source") :
installation of package ‘vegan_2.3-0.tar.gz’ had non-zero exit status
Any other suggestions on how to get access to this library?
Thanks very much.
install.packages("vegan")
will get you there.
This question already has answers here:
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
(18 answers)
Closed 8 years ago.
I tried installing the plyr package and I got the warning message saying it isn't available for R version 3.0.2. Is this true or is no? If not, why would I be getting this message? I tried using two different CRAN mirrors and both gave the same message.
The answer is that the package is available in R (just checked this on my machine).
The particular error message that you are getting is very misleading. It is R's `catch-all' condition for anything that it doesn't understand going wrong during installation. You will get this error if you mis-spelled anything (Plyr instead of plyr) or your network connection is not working, or you are behind a proxy or whatever.
I typically get this problem when I am behind a proxy or I have mis-spelled something. But it can be because of any other number of reasons. I will suggest you make sure you can access the internet from inside R first.
If nothing works, you can always download the package from CRAN using a browser. If you are on Windows, you want the .zip version and if you are on *nix you want the .tar.gz version. (.tgz for Macs?). Then you can install it like so:
setwd("/path/where/I/downloaded/the/compressed/file")
install.packages("plyr", repos=NULL)
See if that works.