Cannot install ggmap - r

I have been getting this every time I try to install ggmap:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Julianne/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘rjson’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggmap_3.0.0.zip'
Content type 'application/zip' length 4698501 bytes (4.5 MB)
downloaded 4.5 MB
package ‘ggmap’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Julianne\AppData\Local\Temp\RtmpUTtA97\downloaded_packages
I have installed Rtools but still cannot install ggmap or rjson.

Related

R version 3.4.1 error in install.packages(ggplot2)

I am having some trouble installing packages on R, and I'm not sure what to do. The errors are as follows:
The downloaded binary packages are in
C:\Users\XanDesktop\AppData\Local\Temp\Rtmpyy8lER\downloaded_packages
install.packages("ggplot2", repos="http://cran.rstudio.com/")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/XanDesktop/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘rlang’
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.3.4 0.4.11 TRUE
ggplot2 3.1.1 3.3.5 FALSE
Binaries will be installed
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB
Error in install.packages : cannot open file 'C:/Users/XanDesktop/Documents/R/win-library/3.4/file4c04705ac2/rlang/help/figures/rlang.png': Permission denied
Any ideas? Thanks in advance!

Unable to install package Rcpp successfully in R Studio

I am unable to install the package "rcpp" in R Studio even though it was executed successfully. When I try to load the sasme library, it doesnt show me in the list of installed libraries.
install.packages("Rcpp")
Installing package into ‘C:/Users/sk/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/Rcpp_1.0.4.6.zip'
Content type 'application/zip' length 3030990 bytes (2.9 MB)
downloaded 2.9 MB
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘Rcpp’
library(Rcpp)
Error in library(Rcpp) : there is no package called ‘Rcpp’
I was able to install by downloading the .tar.gz file from the archive link:
https://cran.r-project.org/src/contrib/Archive/Rcpp/
and installing this instead of directly from CRAN.
I had to install a few other libraries which were dependent on this library as well.

Issue in installing devtools in R version 4.0

After updating the R version from 3.5 to 4.0 I am facing installation issues with devtools package.
Having Rtools 4.0 and RStudio-1.2.5042 downloaded and installed.
when I try to install devtools
install.packages("devtools")
I get this message:
WARNING: Rtools is required to build R packages but is not currently
installed. Please download and install the appropriate version of
Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/ Installing package into
‘C:/Users/shalzsab/Documents/R/win-library/4.0’ (as ‘lib’ is
unspecified) also installing the dependency ‘usethis’
There is a binary version available but the source version is later:
binary source needs_compilation usethis 1.6.0 1.6.1 FALSE
trying URL
'https://cran.rstudio.com/bin/windows/contrib/4.0/devtools_2.3.0.zip'
Content type 'application/zip' length 351089 bytes (342 KB) downloaded
342 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\shalzsab\AppData\Local\Temp\RtmpkhJwos\downloaded_packages
installing the source package ‘usethis’
trying URL 'https://cran.rstudio.com/src/contrib/usethis_1.6.1.tar.gz'
Content type 'application/x-gzip' length 255052 bytes (249 KB)
downloaded 249 KB
The downloaded source packages are in
‘C:\Users\shalzsab\AppData\Local\Temp\RtmpkhJwos\downloaded_packages’
And when I load the package I get this error
library(devtools)
Error: package ‘usethis’ required by ‘devtools’ could not be found
If I try to check the packages in the installation directory
find.package("devtools")
"C:/Users/shalzsab/Documents/R/win-library/4.0/devtools"
For usethis package I get this error
find.package("usethis")
Error in find.package("usethis") : there is no package called ‘usethis’
How can I solve this?

Issue with installing R Shiny

I'm using Version 1.1.453 of RStudio. I'm receiving an error when trying to install R Shiny using the following code (note: I've tried several different mirrors).
install.packages("shiny", repo='http://nbcgib.uesc.br/mirrors/cran/', dependencies = TRUE)
Here's the error message I'm getting. Any sense of what's going on?
Installing package into ‘C:/Users/NHK/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘httpuv’, ‘later’, ‘promises’, ‘rlang’
There are binary versions available but the source versions are later:
binary source needs_compilation
httpuv 1.3.3 1.4.4.1 TRUE
shiny 1.0.2 1.1.0 FALSE
Binaries will be installed
Packages which are only available in source form, and may need compilation of
C/C++/Fortran: ‘later’ ‘promises’ ‘rlang’
These will not be installed
trying URL
'http://nbcgib.uesc.br/mirrors/cran/bin/windows/contrib/3.2/httpuv_1.3.3.zip'
Content type 'application/zip' length 872756 bytes (852 KB)
downloaded 852 KB
package ‘httpuv’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages
installing the source package ‘shiny’
trying URL 'http://nbcgib.uesc.br/mirrors/cran/src/contrib/shiny_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2350156 bytes (2.2 MB)
downloaded 2.2 MB
ERROR: dependencies 'later', 'promises', 'rlang' are not available for package 'shiny'
* removing 'C:/Users/NHK/Documents/R/win-library/3.2/shiny'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l
"C:\Users\NHK\Documents\R\win-library\3.2"
C:\Users\N~1\AppData\Local\Temp\RtmpCqqSmI/downloaded_packages/shiny_1.1.0.
tar.gz' had status 1
Warning in install.packages :
installation of package ‘shiny’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages’

Bioconductor installation difficulty

recently I've changed a computer into a new one and suddenly I cannot install Bioconductor. I used this code, and this is what I get:
source("https://bioconductor.org/biocLite.R")
Installing package into ‘\\uniwa.uwa.edu.au/userhome/students8/21891458/My Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/BiocInstaller_1.30.0.zip'
Content type 'application/zip' length 102191 bytes (99 KB)
downloaded 99 KB
package ‘BiocInstaller’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘BiocInstaller’
The downloaded binary packages are in
C:\Users\21891458\AppData\Local\Temp\Rtmp2DZpRQ\downloaded_packages
'biocLite.R' failed to install 'BiocInstaller', use 'install.packages("BiocInstaller",
repos="https://bioconductor.org/packages/3.7/bioc")' or 'install.packages("BiocInstaller",
repos="http://bioconductor.org/packages/3.7/bioc")'
The problem is it doesn't install it. I tried removing Bioconductor, I tried removing BiocInstaller and I tried even reinstalling Rstudio. None of this helped. What am I doing wrong?

Resources