Not able to install shinytest - r

I am facing some problem while installing shinytest in my laptop. Getting below error message. Can anyone help me here?
> install.packages("shinytest")
Installing package into ‘E:/Users/AAAA/BBB/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ps’, ‘desc’, ‘pkgbuild’, ‘png’, ‘rematch2’, ‘processx’, ‘curl’, ‘pkgload’, ‘praise’, ‘showimage’, ‘debugme’, ‘parsedate’, ‘pingr’, ‘callr’, ‘httr’, ‘testthat’, ‘webdriver’, ‘rstudioapi’
There are binary versions available but the source versions are later:
binary source needs_compilation
ps 1.3.0 1.3.2 TRUE
callr 3.4.1 3.4.2 FALSE

It looks like some dependencies ('ps', 'callr') may be out of date.
Try running update.packages() before installing 'shinytest'.
Alternatively, you may try to install all the listed dependencies on by one ('ps', 'desc', 'pkgbuild', 'png',...)

Related

R installation of package to working directory

I am having issues installing packages to my working directory.
I am trying to install the AER package.
I have set my working directory and checked it using getwd(). When I install the AER package, using install.packages("AER"), I get the option to choose 'Yes' or 'No', I then choose 'Yes', which shows this message:
Installing package into '/Users/tusharshahahni/Desktop'
(as 'lib' is unspecified)
also installing the dependencies 'cli', 'rlang', 'lifecycle', 'scales', 'car'
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.1 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
scales 1.1.1 1.2.1 FALSE
car 3.0-12 3.1-1 FALSE
AER 1.2-9 1.2-10 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel)
Followed by this warning:
Warning in install.packages :
installation of package 'AER' had non-zero exit status
The downloaded source packages are in
'/private/var/folders/cn/jsnjzyx54bjfk71l87vx9v800000gn/T/RtmpCKKBby/downloaded_packages'
This is what comes after I install the package. After this I am unable to access the package using library(AER).
Can someone tell me how to solve this?

How do I fix this error for reticulate in Rstudio?

I searched Stack Overflow for fixes to this error and will put all the things that I have tried below that did not solve the issue. I have not had an issue on other computers but for some reason, reticulate does not want to work for me.
install.packages('reticulate')
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/zcantrell/Documents/R/win-library/3.3’ (as ‘lib’ is
unspecified) also installing the dependencies ‘Rcpp’, ‘RcppTOML’,
‘jsonlite’, ‘png’, ‘rappdirs’
Warning in install.packages : unable to access index for repository
https://cran.rstudio.com/bin/windows/contrib/3.3: cannot open URL
'https://cran.rstudio.com/bin/windows/contrib/3.3/PACKAGES' Packages
which are only available in source form, and may need compilation of
C/C++/Fortran: ‘Rcpp’ ‘RcppTOML’ ‘jsonlite’ ‘png’ ‘rappdirs’
‘reticulate’ These will not be installed
Things I have tried
install.packages('Rtools')
pack <- c('Rccp', 'RccpTOML', 'jsonlite', 'jsonlite', 'png', 'rappdirs')
install.packages(pack)
install.packages('reticulate', type = 'source')

Trouble installing ggvegan in RStudio Version 1.1.463

I am having issues installing ggvegan from GitHub using
devtools::install_github("gavinsimpson/ggvegan")
in R. When I run this code, it comes up with an error message, despite installing other packages. I am not sure if this is compatible with the latest version of R? Please can someone advise on how to get around this? Thanks.
library(devtools)
devtools::install_github("gavinsimpson/ggvegan")
Error: Failed to install 'ggvegan' from GitHub:
(converted from warning) packages ‘vegan’, ‘ggplot2’, ‘tidyr’, ‘permute’, ‘tibble’, ‘dplyr’, ‘purrr’, ‘stringr’ are in use and will not be installed

Error in installing *install.packages("tstools")* in language R

I am getting some error while installing package tstools.
Several other packages were installed correctly like(xts, forecast, MAPA, openxslx),
but this one causing trouble.
R version: 3.5.0
RStudio version: 1.1.447
CRAN: Indonesia
OS: windows 10
Here is the error log...
> install.packages("tstools")
Installing package into ‘C:/Users/pc_name/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependency ‘data.table’
There is a binary version available but the source version is later:
binary source needs_compilation
tstools 0.3.6 0.3.6.1 FALSE
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘data.table’
These will not be installed
installing the source package ‘tstools’
trying URL 'https://cran.rstudio.com/src/contrib/tstools_0.3.6.1.tar.gz'
Content type 'application/x-gzip' length 960748 bytes (938 KB)
downloaded 938 KB
ERROR: dependency 'data.table' is not available for package 'tstools'
* removing 'C:/Users/pc_name/Documents/R/win-library/3.5/tstools'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tstools’ had non-zero exit status
The downloaded source packages are in ‘C:\Users\pc_name\AppData\Local\Temp\Rtmp6l4hr7\downloaded_packages’
Have you tried using devtools?
install.packages("devtools")
devtools::install_github("trnnick/TStools")
Sometimes bioconductor also does the trick
source("https://bioconductor.org/biocLite.R")
biocLite("tstools")
Have you tried install.packages("tstools", dependencies = T) ?

Error while installing R package in AWS

I am using a ubuntu AMI in my AWS and have launched a R studio server.
I am finding trouble in installing the R packages.
Whenever I try to install the packages I get an error
> Installing package into
> ‘/home/rstudio2/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is
> unspecified) Warning in install.packages : dependency ‘xml2’ is not
> available also installing the dependencies ‘jsonlite’, ‘mime’, ‘curl’,
> ‘openssl’, ‘R6’, ‘httr’, ‘base64enc’, ‘digest’, ‘aws.signature’
>
>
> The downloaded source packages are in
> ‘/tmp/Rtmp1BrKS6/downloaded_packages’
Could anyone help me to backtrace the reason for error. Would be thankful, I have spent almost a day . could not figure out
dependency ‘xml2’ is not available
From this error, we can understand that package XML2 is missing. You need to install the system library libxml2-dev to install the XML2 package. So use the following command to install the package:
sudo apt install libxml2-dev
After this proceed with R package installation.

Resources