Issue with installing R Shiny - r

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’

Related

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?

I can't seem to install the 'ecospat' package on R studio for windows

I am unable to install the 'ecospat' package on R and I was wondering why this could be?
After running the following bit of code using R in windows.....
install.packages('ecospat')
This is the error message I get...
Installing package into ‘C:/Users/etelford.IC.000/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘pROC’, ‘biomod2’
There are binary versions available but the source versions are later:
binary source needs_compilation
pROC 1.14.0 1.16.2 TRUE
biomod2 3.3-7.1 3.4.6 FALSE
ecospat 3.0 3.1 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/pROC_1.14.0.zip'
Content type 'application/zip' length 941305 bytes (919 KB)
downloaded 919 KB
package ‘pROC’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\etelford.IC.000\AppData\Local\Temp\RtmpsBJC01\downloaded_packages
installing the source packages ‘biomod2’, ‘ecospat’
trying URL 'https://cran.rstudio.com/src/contrib/biomod2_3.4.6.tar.gz'
Content type 'application/x-gzip' length 665227 bytes (649 KB)
downloaded 649 KB
trying URL 'https://cran.rstudio.com/src/contrib/ecospat_3.1.tar.gz'
Content type 'application/x-gzip' length 2179055 bytes (2.1 MB)
downloaded 2.1 MB
installing source package 'biomod2' ...
** package 'biomod2' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'pROC' 1.14.0 is being loaded, but >= 1.15.0 is required
ERROR: lazy loading failed for package 'biomod2'
removing 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/biomod2'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\etelford.IC.000\Documents\R\win-library\3.4" C:\Users\ETELFO~1.000\AppData\Local\Temp\RtmpsBJC01/downloaded_packages/biomod2_3.4.6.tar.gz' had status 1
Warning in install.packages :
installation of package ‘biomod2’ had non-zero exit status
ERROR: dependency 'biomod2' is not available for package 'ecospat'
removing 'C:/Users/etelford.IC.000/Documents/R/win-library/3.4/ecospat'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\etelford.IC.000\Documents\R\win-library\3.4" C:\Users\ETELFO~1.000\AppData\Local\Temp\RtmpsBJC01/downloaded_packages/ecospat_3.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ecospat’ had non-zero exit status
Any help would be greatly appreciated,
thanks
First of all you need to update your R version. I think you use an R 3.4 version.
The main reason why your installation fails is that you need to install pROC > 1.15 and this is not available for R 3.4.

How to install caret package. Tried install.packages("caret") but getting error

After install.packages("caret") getting below error:
Installing package into ‘...../R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rlang’, ‘recipes’
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.3.4 0.4.0 TRUE
recipes 0.1.5 0.1.6 FALSE
caret 6.0-81 6.0-84 TRUE
Binaries will be installed
trying URL 'https://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
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/caret_6.0-81.zip'
Content type 'application/zip' length 5392174 bytes (5.1 MB)
downloaded 5.1 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
package ‘caret’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
.........\Temp\RtmpkJG4l1\downloaded_packages
installing the source package ‘recipes’
trying URL 'https://cran.rstudio.com/src/contrib/recipes_0.1.6.tar.gz'
Content type 'application/x-gzip' length 968331 bytes (945 KB)
downloaded 945 KB
ERROR: dependency 'rlang' is not available for package 'recipes'
* removing 'C:/Users/PBiradarP/Documents/R/win-library/3.4/recipes'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "......\R\win-library\3.4"
...../Temp\RtmpkJG4l1/downloaded_packages/recipes_0.1.6.tar.gz' had status 1
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
I have tried and installed "rlang" package also. Its dependent on "recepies" package so again downloaded that too...
getting this message after installing this.
:Warning in install.packages :
package ‘recepies’ is not available (for R version 3.4.4)
I need to load caret package to be installed.
If you are using Windows, try this:
Add your library to libpaths; see this answer. After that try installing packages; see this answer:
install.packages("caret", dependencies=TRUE, type="win.binary")

RMD packages can't be downloaded in R Studio

I can't download the RMD packages in R studio. I tried it by running install.packages("rmarkdown"), and I tried it by File > New File > R Markdown > Download packages.
This is the output:
> install.packages("rmarkdown")
Installing package into ‘C:/Users/Luke/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘glue’, ‘stringi’, ‘knitr’, ‘yaml’, ‘stringr’
There are binary versions available but the source versions are later:
binary source needs_compilation
glue 1.0.0 1.3.1 TRUE
stringi 1.1.5 1.4.3 TRUE
knitr 1.15.1 1.23 FALSE
yaml 2.1.14 2.2.0 TRUE
stringr 1.2.0 1.4.0 FALSE
rmarkdown 1.4 1.13 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/glue_1.0.0.zip'
Content type 'application/zip' length 34947 bytes (34 KB)
downloaded 34 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/stringi_1.1.5.zip'
Content type 'application/zip' length 14220135 bytes (13.6 MB)
downloaded 13.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/yaml_2.1.14.zip'
Content type 'application/zip' length 180051 bytes (175 KB)
downloaded 175 KB
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘stringi’ successfully unpacked and MD5 sums checked
package ‘yaml’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages
installing the source packages ‘knitr’, ‘stringr’, ‘rmarkdown’
trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.23.tar.gz'
Content type 'application/x-gzip' length 880134 bytes (859 KB)
downloaded 859 KB
trying URL 'https://cran.rstudio.com/src/contrib/stringr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 135777 bytes (132 KB)
downloaded 132 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_1.13.tar.gz'
Content type 'application/x-gzip' length 3155180 bytes (3.0 MB)
downloaded 3.0 MB
* installing *source* package 'stringr' ...
** package 'stringr' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'stringi' 1.1.5 is being loaded, but >= 1.1.7 is required
ERROR: lazy loading failed for package 'stringr'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/stringr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/stringr_1.4.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘stringr’ had non-zero exit status
ERROR: dependency 'stringr' is not available for package 'knitr'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/knitr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/knitr_1.23.tar.gz' had status 1
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependencies 'knitr', 'stringr' are not available for package 'rmarkdown'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/rmarkdown'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/rmarkdown_1.13.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages’
The C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages folder contains:
Screenshot of named folder
I am very inexperienced with programming in R, so I have no idea what to do with this. I am learning to do it (via the online Udacity course), and for that I need these RMD packages to continue. I hope someone can help me.

I need to use R version 3.3.3. Is there a way to install packages successfully? I am unable to install any packages

I need to use R 3.3.3 for SPSS Modeler 18.1. I am unable to install any packages in this version of R.
I have a version of R 3.5.1 and am successfully using it with RStudio. I need to use R 3.3.3 for SPSS Modeler 18.1. I am unable to install any packages. I tried update.packages(), install.packages with type="source" or "both", tried devtools, but can't install devtools either. I believe there's a binary and source mismatch that needs_compilation, but can't seem to figure out how to fix it. This is happening for every package I can think of that I normally use: dplyr, tidyverse, ggplot2, forecast, etc etc.
install.packages('dplyr')
library('dplyr')
install.packages('pillar')
install.packages('devtools')
> install.packages('dplyr')
also installing the dependency ‘rlang’
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.2.0 0.3.1 TRUE
dplyr 0.7.4 0.7.8 TRUE
Binaries will be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/dplyr_0.7.4.zip'
Content type 'application/zip' length 2897358 bytes (2.8 MB)
downloaded 2.8 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘rlang’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘dplyr’
The downloaded binary packages are in
C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
> library('dplyr')
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘pillar’
Error: package or namespace load failed for ‘dplyr’
> install.packages('pillar')
also installing the dependencies ‘fansi’, ‘rlang’
There are binary versions available but the source versions are later:
binary source needs_compilation
fansi 0.2.2 0.4.0 TRUE
rlang 0.2.0 0.3.1 TRUE
pillar 1.2.1 1.3.1 FALSE
Binaries will be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/fansi_0.2.2.zip'
Content type 'application/zip' length 141745 bytes (138 KB)
downloaded 138 KB
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB
package ‘fansi’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘rlang’
The downloaded binary packages are in
C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
installing the source package ‘pillar’
trying URL 'https://cran.mtu.edu/src/contrib/pillar_1.3.1.tar.gz'
Content type 'application/x-gzip' length 103972 bytes (101 KB)
downloaded 101 KB
ERROR: dependency 'rlang' is not available for package 'pillar'
* removing 'C:/Program Files/R/R-3.3.3/library/pillar'
The downloaded source packages are in
‘C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/pillar_1.3.1.tar.gz' had status 1
2: In install.packages("pillar") :
installation of package ‘pillar’ had non-zero exit status
> install.packages('devtools')
also installing the dependencies ‘git2r’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’
There are binary versions available but the source versions are later:
binary source needs_compilation
git2r 0.21.0 0.24.0 TRUE
rcmdcheck 1.2.1 1.3.2 FALSE
devtools 1.13.5 2.0.1 FALSE
Binaries will be installed
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘pkgload’
These will not be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/git2r_0.21.0.zip'
Content type 'application/zip' length 3022652 bytes (2.9 MB)
downloaded 2.9 MB
package ‘git2r’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
installing the source packages ‘pkgbuild’, ‘rcmdcheck’, ‘devtools’
trying URL 'https://cran.mtu.edu/src/contrib/pkgbuild_1.0.2.tar.gz'
Content type 'application/x-gzip' length 25264 bytes (24 KB)
downloaded 24 KB
trying URL 'https://cran.mtu.edu/src/contrib/rcmdcheck_1.3.2.tar.gz'
Content type 'application/x-gzip' length 1408582 bytes (1.3 MB)
downloaded 1.3 MB
trying URL 'https://cran.mtu.edu/src/contrib/devtools_2.0.1.tar.gz'
Content type 'application/x-gzip' length 388953 bytes (379 KB)
downloaded 379 KB
* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'callr', details:
call: loadNamespace(name)
error: there is no package called 'debugme'
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Program Files/R/R-3.3.3/library/pkgbuild'
ERROR: dependency 'pkgbuild' is not available for package 'rcmdcheck'
* removing 'C:/Program Files/R/R-3.3.3/library/rcmdcheck'
ERROR: dependencies 'pkgbuild', 'pkgload', 'rcmdcheck' are not available for package 'devtools'
* removing 'C:/Program Files/R/R-3.3.3/library/devtools'
The downloaded source packages are in
‘C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/pkgbuild_1.0.2.tar.gz' had status 1
2: In install.packages("devtools") :
installation of package ‘pkgbuild’ had non-zero exit status
3: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/rcmdcheck_1.3.2.tar.gz' had status 1
4: In install.packages("devtools") :
installation of package ‘rcmdcheck’ had non-zero exit status
5: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/devtools_2.0.1.tar.gz' had status 1
6: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
#MrFlick, thank you. I was able to navigate and ended up using this site "https://www.r-bloggers.com/using-old-versions-of-r-packages/", and used a link from that post for binaries because I was having a lot of issues with that "https://cran.r-project.org/bin/windows/contrib/", and code example for package devtools: install.packages("https://cran.r-project.org/bin/windows/contrib/3.3/devtools_1.13.5.zip", repos=NULL, type="source"). It all seems to work and load the libraries :). Thank you for the direction!

Resources