So I am going to do some survivalsvm process and I need the mlr3extralearners package from GitHub. When I tried to install it locally using the tar.gz file, it said
Execution halted
Warning in install.packages: installation of package had non-zero exit status
I also tried to use the zip file, and it said
install.packages("C:/Users/Ivan/Downloads/mlr3extralearners-0.5.49.zip", repos = NULL, type = "win.binary", lib="C:/R-4.2.1/library")
then nothing happened.
I also tried using devtools::install_github("mlr-org/mlr3extralearners"), but the output was the same when I used the tar.gz file. When I checked in my library, I already have the mlr3extralearners package, but when I call it using library(mlr3extralearners), it does not work. Does anyone know how to solve this? Any help is appreciated.
https://rdrr.io/github/mlr-org/mlr3extralearners/
I believe this should work for you:
Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("mlr-org/mlr3extralearners")
Related
I just installed R studio and I was trying to install rmarkdown. However, I got the error as below. I unchecked the box ''Tools -> Global Options -> Packages -> Use secure download method for HTTP'' as someone suggested. No help. I tried other packages, I got the same error.
You should remove the package and reinstall it using dependencies = TRUE:
remove.packages("rmarkdown")
install.packages("rmarkdown", dependencies = TRUE)
library(rmarkdown)
Output:
Warning message:
package ‘rmarkdown’ was built under R version 4.1.2
I had the same issue and it was due to the newest version of the toolboxes include the names is under new package names. Go to the URL https://cran.rstudio.com/src/contrib/PACKAGES and search for "rmarkdown". Find the package name and try to install that instead. It's like a .zip file that includes several packages to your library. Try install.packages("accucor"). It worked for me at least, and then try to install the rmarkdown package.
I am trying to install the R package robCompositions but keep getting error messages. I have tried the following so far.
standard install
install.packages("robCompositions")
github install as suggested by the package maintainer (https://github.com/matthias-da/robCompositions)
library(devtools)
install_github("matthias-da/robCompositions", dependencies = TRUE)
download package and install from the package archive file (.zip, .tar, .gz)
unzip the downloaded package and run standard install
install.packages("C:/Users/SUHAS/Desktop/robCompositions_2.3.0", type="source", repos = NULL)
install r tools and then install package using standard install (https://cran.r-project.org/bin/windows/Rtools/)
install.rtools()
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
Sys.which("make")
## "C:\\rtools40\\usr\\bin\\make.exe"
install.packages("robCompositions", type = "source")
Any suggestions on how to resolve this issue would be much appreciated.
I am running R version R-4.0.4
First, apologies this is an answer and not a comment - I think it should be a comment but I don't yet have enough reputation points to comment.
I had a very similar problem. When researching it, I came across this page: https://cran.r-project.org/web/packages/robCompositions/index.html. It looks like robCompositions has been removed from CRAN, and the reason for that is a dependency, sROC, has been archived? I haven't yet come up with a workaround (I guess I'm hoping it will come back onto CRAN at some point soon!)
I tried to install custom R package 'sf' in the WRDS cloud via interactive R session, but failed. The instruction from WRDS is:
https://wrds-www.wharton.upenn.edu/pages/support/programming-wrds/programming-r/installing-r-packages/
I followed the instructions and the package 'sf_0.9-6.tar.gz' is already in the '~/lib/R' directory:
When i tried to install the package in the interactive R session, i typed in the code :
install.packages("~/sf_0.9-6.tar.gz", lib = "~/lib/R")
I got the following error:
I don't understand why it is an invalid package, even though i've downloaded the package directly from CRAN. Besides, the package should work on the R 3.6.2.
Could anyone help? I would highly appreciated it!
I faced a similar issue with installation of another user-written package (from CRAN) on R 4.0.5 but, I guess, the root cause of the issue is the same which is that install.packages can not find the package TAR file in the directory /home/<institutionName>/<userName> (note: this is what the ~ stands for).
Could you try replacing your code:
install.packages("~/sf_0.9-6.tar.gz", lib = "~/lib/R")
with
install.packages("~/lib/R/sf_0.9-6.tar.gz", lib = "~/lib/R")
Expanding the path of the package to the newly created R sub-folder within the lib folder worked for me.
I'm trying to install a package called "DiabetesTxPath-master" from local files.(The file can be downloaded in https://github.com/rohit43/DiabetesTxPath)
I used the code below installing it.
'filename<-"DiabetesTxPath-master.zip"'
install.packages(filename,type="binary",repos=NULL)
but when I try to load the packaged by the code below,
library(DiabetesTxPath)
error comes up.
there is no package called ‘DiabetesTxPath-master'
There is no problem in location.
.libPaths()
[1] "C:/Program Files/R/R-3.4.2/library"'
and this is where I want my package to be installed.
(and I see my packaged installed in the folder with my eyes!)
2.I've also tried to run as an administrator. it didn't work either.
So what could be the probelm, and how could I fix this?
Any comment would be appreciated so much.
I've been trying it so hard for a week.
Try using
library(devtools)
install_github("rohit43/DiabetesTxPath")
the problem arises because the dependencies for this package
ERROR: dependencies 'FeatureExtraction', 'CohortMethod',
'OhdsiSharing' are not available for package 'DiabetesTxPath'
are not available for this package in R 3.5 and above .
Now you need to install older version of R where these dependencies were supported and try using the above method.
I'm trying to download library 'quantmod' in R:
install.packages("quantmod")
console:
The downloaded source packages are in
‘/tmp/RtmpwSKGIl/downloaded_packages’
then:
library("quantmod", lib.loc="/tmp/RtmpwSKGIl/downloaded_packages")
console:
Error in library("quantmod", lib.loc = "/tmp/RtmpwSKGIl/downloaded_packages") :
there is no package called ‘quantmod’
What is the problem?
I get no problem when I try to load this package.Have you tried to provide R the full name path to your package file directory ?C:/Users/...Is your R version up to date ? Try to check if you have the latest, I tried and it worked with :
R 3.3.3
If you are a Windows or MAC user you might want to force the download of the package from source to binary, this can be done by setting the right options in the install.packages command:
options(install.packages.check.source = "no")
https://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html
I guess I am a year late, but just got out of this situation by installing the Package from R (instead of RStudio) by changing the CRAN.
You can then run library(quantmod) in Rstudio. Hope this works(worked?) for you too.
I am ready to go now!