Installed Rtools, R says it is not installed - r

I've followed the instructions here to a T
https://cran.r-project.org/bin/windows/Rtools/
When I run the test on the jsonlite package I still get
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
and then
Error: ERROR: no permission to install to directory 'C:/Users/fl014036/Documents/R/R-3.6.2/library'
Warning in install.packages :
installation of package ‘jsonlite’ had non-zero exit status

Related

install daewr package in R 4.0

hi i am trying to install package for experiment designs like this
install.packages("daewr", dependencies = T)
but it returns the following
configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org
ERROR: configuration failed for package ‘gmp’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/gmp’
Warning in install.packages :
installation of package ‘gmp’ had non-zero exit status
ERROR: dependency ‘gmp’ is not available for package ‘partitions’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/partitions’
Warning in install.packages :
installation of package ‘partitions’ had non-zero exit status
ERROR: dependency ‘partitions’ is not available for package ‘DoE.base’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/DoE.base’
Warning in install.packages :
installation of package ‘DoE.base’ had non-zero exit status
ERROR: dependency ‘DoE.base’ is not available for package ‘FrF2’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/FrF2’
Warning in install.packages :
installation of package ‘FrF2’ had non-zero exit status
ERROR: dependency ‘FrF2’ is not available for package ‘daewr’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/daewr’
Warning in install.packages :
installation of package ‘daewr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpB1bSe0/downloaded_packages’
so i decided to download the file from https://cran.r-project.org/web/packages/daewr/index.html
after trying to install it returns me
also installing the dependencies ‘gmp’, ‘partitions’, ‘DoE.base’, ‘FrF2.catlg128’
I try to install the first one but it asks for a Bessel package and it still gives me problems
I solved it by installing dependency one by one, many answer you install the dependencies but they do not say how I will explain them for the new ones in linux and in R to install the daerw package with the aforementioned problems, install the following in the linux console
sudo apt-get install libgsl-dev
with that install libraries now I can open R and install
install.packages('gsl')
then I opened the linux console again and installed
sudo apt-get install libgmp-dev
I go back to R and install
install.packages("gmp", dependencies = T)
now I can install the package without problems
install.packages("daewr", dependencies = T)
library(daewr)
I hope that any comment is welcome.

Is there any way to install RMongo package as its officially removed from CRAN?

I need to install RMongo to connect to my local MongoDB database. On installing RMongo I am getting this error:
Warning in install.packages :
package ‘RMongo’ is not available (for R version 3.5.3)
I also downloaded RMongo tar file and stored in R directory where all packages get installed and tried to install the package by writing this command in R environment
install.packages("C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar", repos = NULL, type="source")
On trying to download the package through tar file I am getting this error,
Warning: invalid package 'C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar'
Error: ERROR: no packages specified
In R CMD INSTALL
Warning in install.packages :
installation of package ‘C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar’ had non-zero exit status
Any help is appreciated
Thanks in Advance

Installation of archived package "prob" not working in R

I'm running R 3.4.2 and R Studio 1.0.153. I want to install the prob package in R. The prob package in an archived file. It is located here. I am trying to install the prob_1.0-0.tar.gz package. I have no problem downloading and opening the package archive file. The code is below, it seems I need to install the fAsianOptions package.
ERROR: dependency 'fAsianOptions' is not available for package 'prob'
* removing 'C:/Users/blake_000/Documents/R/win-library/3.4/prob' Warning in install.packages : running command
'"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l
"C:\Users\blake_000\Documents\R\win-library\3.4"
"C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/prob_1.0-0.tar.gz"'
had status 1 Warning in install.packages : installation of package
‘C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/prob_1.0-0.tar.gz’
had non-zero exit status
Unfortunately, the fAsianOptions package is also archived. It is located here and I downloaded version fAsianOptions_3010.79.tar.gz. There were a number of dependencies but I installed the required packages (timeDate, timeSeries, etc.)
However, the fAsianOptions package is not installing. The error code reads as follows:
install.packages("C:/Users/blake_000/Google Drive/Life/CSUEB/Fall
2017/6204- Probability/R Code/fAsianOptions_3010.79.tar.gz", repos =
NULL, type = "source") Installing package into
‘C:/Users/blake_000/Documents/R/win-library/3.4’ (as ‘lib’ is
unspecified)
* installing source package 'fAsianOptions' ...
** package 'fAsianOptions' successfully unpacked and MD5 sums checked
** libs
*** arch - i386 Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f
"C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk"
SHLIB="fAsianOptions.dll" SHLIB_LIBADD='$(FLIBS)'
OBJECTS="EBMAsianOptions.o GammaFunctions.o
HypergeometricFunctions.o"' had status 127 ERROR: compilation failed
for package 'fAsianOptions'
* removing 'C:/Users/blake_000/Documents/R/win-library/3.4/fAsianOptions' Warning
in install.packages : running command
'"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l
"C:\Users\blake_000\Documents\R\win-library\3.4"
"C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/fAsianOptions_3010.79.tar.gz"'
had status 1 Warning in install.packages : installation of package
‘C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/fAsianOptions_3010.79.tar.gz’
had non-zero exit status
I'm hoping that someone can help me to install the fAsianOptions dependency so I can install the prob package. Or, if there's an easier way, please let me know!
I had the same problem. I solved it by installing lower version of R -2.9. prob is available in repository for this version.

Unable to install lme4 R package in Windows 10

I am trying to install lme4 with R studio on Windows 10, unsuccessfully. Apparently the nloptr package is not correctly installed. R returns the following error message:
>Warning in install.packages : installation of package ‘nloptr’ had non-zero exit status
then
>ERROR: dependency 'nloptr' is not available for package 'lme4'
and at the end
>Warning in install.packages : installation of package ‘lme4’ had non-zero exit status
When I started to use R studio in Windows I have followed this https://cran.r-project.org/bin/windows/Rtools/ and installed the Rtools, MikTex and InnoSetup.
If I try to install separately the package nloptr it does not work either and gives the same warning message.
Has this happened to anyone while installing lme4?

Rcplex error - is not a valid package

I am using R 3.1.3 and had installed Rcplex via tar.gz file at http://cran.at.r-project.org/web/packages/Rcplex/index.html
When I load the library I get following error:
library (Rcplex)
Error in library(Rcplex) : ‘Rcplex’ is not a valid installed package
EDIT:
The package was installed by extracting the contents of the tar.gz file where other libraries are stored /installed.
Also tried installing it through the source:
install.packages ("<file path>/Rcplex_0.3-2.tar.gz", repos=NULL,type="source")
In install.packages("("<file path>//Rcplex_0.3-2.tar.gz",: installation of package ‘("<file path>/Rcplex_0.3-2.tar.gz’ had non-zero exit status
Lastly, tried via CRAN url.
install.packages ("Rcplex", repos="http://cran.us.r-project.org",type="source")
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib
Warning message: package ‘Rcplex’ is not available (for R version 3.1.3)

Resources