Package RQuantLib is not available for R 3.5.0 - r

Has anyone else tried to load the RQuantLib package for R 3.5.0?
I tried (which has worked before):
install.packages("drat", dependencies = TRUE)
drat::addRepo("ghrr")
install.packages("RQuantLib", type = "binary")
but get the error message:
Warning: unable to access index for repository https://ghrr.github.io/drat/bin/windows/contrib/3.5:
cannot open URL 'https://ghrr.github.io/drat/bin/windows/contrib/3.5/PACKAGES'
Warning message:
package ‘RQuantLib’ is not available (for R version 3.5.0)

You can try this:
library(devtools)
install_github("eddelbuettel/rquantlib")
Or equivalently (based on comment by Dirk Eddelbuette)
install.packages("RQuantLib", type="source")

Related

Error installing package mxnet in r 4.0.3 on Mac

I need to install the package MXNET on a Mac OS.
I have tried
install.packages("mxnet")
and get the following error
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib/PACKAGES'
Warning in install.packages :
package ‘mxnet’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/bin/macosx/contrib/4.0:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/bin/macosx/contrib/4.0/PACKAGES'
Online solutions do not seem to work for my version of r and I keep getting the same error message as above.
I tried specifying the repository as follows with no luck
cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23"
options(repos = cran)
install.packages("mxnet")
Another option I tried is
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")
require(devtools)
install_version("DiagrammeR", version = "0.8.1", repos = "http://cran.us.r-project.org")
require(mxnet)
This does not return an error when installing, but if I run something as easy as
mx.set.seed(0)
I get a message saying there is no function mx.set.seed
Does someone know if I can download a zip file for the package and import it manually into r, or if there is a simpler way of doing this?
Thank you

Unable to install car package

I am unable to install the car package using version 3.4.4 in r. I keep getting error messages:
warning in install.packages : package 'car' not available (for R version 3.4.4)
I tried using the normal function install.packages('car') and also
install.packages('car', dependencies=TRUE, repos='http://cran.rstudio.com/')
but I'm still having the same error.
Try installing an old version of car that does not require R 3.5:
library(devtools)
install_version("car", version = "3.0-2", repos = "http://cran.us.r-project.org")

Download older version of a package that has been removed from CRAN

I resume working on text mining after a substantial period of hiatus, but soon found out that the package RTextTools has been removed from CRAN and was no longer in maintenance. I tried to download it manually from CRAN archive using
url <- "http://cran.r-project.org/src/contrib/Archive/RTextTools/RTextTools_1.4.2.tar.gz"
install.packages(url, repos=NULL, type="source")
but my R shows
there is no package called 'RTextTools'.
I then tried out the trick recommended by this earlier thread by using
url <- "http://cran.r-project.org/src/contrib/Archive/RTextTools/RTextTools_1.4.2.tar.gz"
pkgFile <- "RTextTools_1.4.2.tar.gz"
download.file(url = url, destfile = pkgFile)
install.packages(c('randomForest', 'tree', 'ipred', 'maxent', 'glmnet', 'tau'))
install.packages(pkgs=pkgFile, type="source", repos=NULL)
But this didn't work either.
The RTextTools package has many handy features I appreciate and I really do want to maintain an older version of it in my folder, is there any other ways I can install the archived version of this package on my R?
The issue is located at the tree dependency package installation:
install.packages("tree")
Throws an error (my R version is 3.5.0):
ERROR: This is R version 3.5.0, 'tree' package requires R >= 3.6.0
In R CMD INSTALL
Warning in install.packages :
installation of package
‘tree_1.0-40.tar.gz’ had non-zero exit status
To solve it update R to version >= 3.6.0.

Error in R packages Installation using Require

Please give me solution..
if (!require('SnowballC',character.only=TRUE))
install.packages('https://cran.r-project.org/bin/windows/contrib/3.4/SnowballC_0.5.1.zip', repos=NULL, dep=TRUE);
library('SnowballC')
when i use this command..I am getting message like
Warning message: In library(package, lib.loc = lib.loc, character.only
= TRUE, logical.return = T RUE, : there is no package called 'SnowballC' Warning message: package 'SnowballC' was built under R
version 3.3.1
Binary package compiled with different version of R
Warning message:
package ‘SnowballC’ was built under R version 3.3.1
By default, R will install pre-compiled versions of packages if they are found. If the version of R under which the package was compiled does not match your installed version of R you will get the message above.
The solution is to download the package source and install by hand with e.g.:
#File name might be different
R CMD INSTALL SnowballC_0.5.1.tar.gz
Source: http://mazamascience.com/WorkingWithData/?p=1185

genderdata package unavailable for R 3.2.3

When I try installing the package "genderdata" to R,
install.packages("genderdata")
I get the following error:
Warning in install.packages :
package ‘genderdata’ is not available (for R version 3.2.3)`
Is there any way around this?
I tried this in my version of R 3.1.1 and got the same error message as you. When I looked closer it also said:
package ‘genderdata’ is available as a source package but not as a binary
I searched around some more and came up with this which worked for me.
options(repos = c("http://packages.ropensci.org/", getOption("repos")))
install.packages("genderdata", repos = "http://packages.ropensci.org", type="source")
I got several warnings but it did install and can be loaded with
library(genderdata)
Try installing from a source that doesn't limit you based on your R version with devtools and github.
install.packages('devtools')
library(devtools)
install_github("ropensci/genderdata")
library(genderdata)

Resources