I've installed devtools for R, but when I call the library with:
library(devtools)
I get the following output:
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().
So I executed the following code:
install.packages("Rtools", repos = "http://cran.r-project.org/bin/windows/Rtools/")
And I get the following output:
Installing package into ‘C:~/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://cran.r-project.org/bin/windows/Rtools/bin/windows/contrib/3.0
Warning message:
package ‘Rtools’ is not available (for R version 3.0.2)
I would appreciate any help that's out there to get Rtools onto my machine so I can call the devtools library. Thank you!
Rtools is not a package. See here: https://cran.r-project.org/bin/windows/Rtools/
I've installed devtools for R, but when I call the library with:
library(devtools)
I get the following output:
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().
So I executed the following code:
install.packages("Rtools", repos = "http://cran.r-project.org/bin/windows/Rtools/")
And I get the following output:
Installing package into ‘C:~/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://cran.r-project.org/bin/windows/Rtools/bin/windows/contrib/3.0
Warning message:
package ‘Rtools’ is not available (for R version 3.0.2)
I would appreciate any help that's out there to get Rtools onto my machine so I can call the devtools library. Thank you!
Rtools is not a package. See here: https://cran.r-project.org/bin/windows/Rtools/
I am trying to install the Rstem package, but I am getting the message that there is no version available for the version of R 3.5.1. I'm using the macOs El Captain.
The error is:
> install.packages('Rstem', repos = 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz')
Installing package into ‘/Users/ls_rafael/Library/R/3.5/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib:
cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib/PACKAGES'
Warning in install.packages :
package ‘Rstem’ is not available (for R version 3.5.1)
Warning in install.packages :
unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5:
cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5/PACKAGES'
I already tried the suggested options in this link issues in installing Rstem package and also downloading the package locally from the official website Rstem Package, but the result is also unsatisfactory.
I'm studying how to do an sentiment analysis with Twitter data. I would like to know if there is any alternative to this package or if there is any trick to install it.
RStem package has been removed from the CRAN repository. You can download using the following command:-
install.packages('Rstem', repos = "http://www.omegahat.net/R")
Make sure you have RTools installed on your machine. You can download it from this link -
Building R for Windows
RStem is now provided by OmegaHat.
Try the command below:
install.packages("Rstem", repos = "http://www.omegahat.net/R", type = "source")
When I am running my shiny app in RStudio I get an error message:
packages not found. shiny 1.0 required but 0.14.1. available. Check "repos" Option.
I have tried everything but no luck.
** Update
No I have downloaded the package directly from CRAN, this was the result:
install.packages("C:/Users/mbaer/Downloads/shiny_1.1.0.tar.gz",
repos = NULL, type = "source")
Installing package into ‘C:/Users/mbaer/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
ERROR: dependencies 'later', 'promises', 'rlang' are not available for package 'shiny'
* removing 'C:/Users/mbaer/Documents/R/win-library/3.3/shiny'
Warning in install.packages :
running command '"C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/bin/x64/R" CMD INSTALL -l "C:\Users\mbaer\Documents\R\win-library\3.3" "C:/Users/mbaer/Downloads/shiny_1.1.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/mbaer/Downloads/shiny_1.1.0.tar.gz’ had non-zero exit status
This is a picture
I have no idea. This is a screenshot.
I found the solution:
Tools--> Global Options --> General--> R Version
wrong R Version was selected. #fail
Thank you so much for your attention to my post. Thank you all.
This answer still left me wondering a little, so I thought I'd add a bit. This led me to switching from 64-bit R to 32-bit R. Had to re-install all my packages, but then it worked!
I am an r newbie and would appreciate some help installing ggplot2. I am using RStudio Version 0.98.1102. Please see error below.
install.packages("ggplot2")
runs fine
library("ggplot2")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) : there is no package called ‘colorspace’ Error: package or
namespace load failed for ‘ggplot2’
install.packages("colorspace")
Installing package into ‘C:/Users/Jessica/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified) There is a binary version available (and
will be installed) but the source version is later: binary source
colorspace 1.2-4 1.2-5 trying URL
'...//cran.rstudio.com/bin/windows/contrib/3.1/colorspace_1.2-4.zip'
Warning in install.packages : cannot open: HTTP status was '404 Not
Found' Error in download.file(url, destfile, method, mode = "wb", ...)
: cannot open URL
'...://cran.rstudio.com/bin/windows/contrib/3.1/colorspace_1.2-4.zip'
Warning in install.packages : download of package ‘colorspace’ failed
Looks like something is a bit messed up with the package meta-information or something in your Rstudio installation. A simple work-around to try is to just download the latest colorspace zip file from here: http://cran.r-project.org/web/packages/colorspace/index.html
Then install by running install.packages("c:/path/to/downloaded/zip/file/colorspace_1.2-5.zip")
When you type in install.packages("ggplot2") into the console, RStudio is pre-programmed to also install the dependencies (i.e. the other packages ggplot needs to run properly). In this case, the issue appears to be with the colorspace package not being able to installed. This is likely because you're running Yosemite and when RStudio looks to install colorspace, it searches for it on the CRAN, it can't find it for some reason:
cannot open URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/colorspace_1.2-4.tgz'
You should be able to overcome this by installing the colorspace package yourself via the CRAN: http://cran.r-project.org/web/packages/colorspace/index.html.
Similar to the original question, I recently encountered this issue with colormap 2.0.0, ggplot2 3.3.2, R 4.0.3, and RStudio 1.3.1093 on Windows. install.packages("ggplot2") reports success even though it does not install colormap and library(ggplot2) therefore fails. In my case, install.packages("colormap") failed to locate the 2.0.0 binaries, retrieving the 1.4.1 sources instead. Downloading the 2.0.0 binary from https://CRAN.R-project.org/package=colorspace, as suggested in other answers, failed with
> install.packages("C:/Users/<username>/Downloads/colorspace_2.0-0.zip") # note use of forward slashes to avoid the backlash escaping problems #Paul M mentions in his comment on #L P's answer -- \\ instead of just \ also works
Warning in install.packages :
package ‘C:/Users/<username>/Downloads/colorspace_2.0-0.zip’ is not available for this version of R
What resolved this for me was including type = "win.binary" in install.packages()'s arguments when installing from the download.
install.packages("C:/Users/<username>/Downloads/colorspace_2.0-0.zip", type = "win.binary")
Having done this, install.packages("colorspace") also succeeds (both in session and after remove.packages("colorspace") and restarting R).
Try to install the color space separately and reload the package inside R studio again .
install.packages('ggplot2')
install.packages('colorspace')
library(ggplot2)
Hope this helps!
Sometimes when the Curl version is not updated, problem with installing the packages happens. For resolving the problem in Linux, you could use the following command to update your Curl to tha last version:
sudo apt-get install libcurl4-openssl-dev libxml2-dev
To me, it started giving this error when I updated all my packages using the available option "Packages" in R studio, it was working well before. After trying a few mentioned solutions in google and failed, I updated my R version and installed the packages, it worked.