Error message for installing package "ggRandomForests" in R - r

I am a beginner in R, so maybe the solution is obvious (if so, I am sorry). I tried to install the package "ggRandomForests" in R (Version: 4.1.2) and I got this message:
Warning in install.packages :
package ‘ggRandomForests’ is not available for this version of R
I googled the problem and found some solutions that I tried but they didn't work:
I tried installing "ggRandomForest" since someone suggested that but that gives the same error message.
I also tried taking an older version of ggRandomForests from this website: https://cran.r-project.org/src/contrib/Archive/randomForest/, stored the URL in a variable and tried to install it like that, but that also didn't work (no error message, just nothing happens). This was my code for that:
urlPackage <- "https://cran.r-project.org/src/contrib/Archive/randomForest/randomForest_4.6-14.tar.gz"
install.packages(urlPackage, repos=NULL, type="source")
Maybe I am missing something or does someone know what the problem is?
Specifically I want to use gg_vimp(), so maybe someone knows an alternative?

Related

How to fix error: package 'tzdb' is not available for this version of R

I'm new at R and trying to usetidyverse. The installation seems to go fine, but when I want to load the package, I get this error: there is no package called 'tzdb'. When I try to install 'tzdb' I get a warning that package 'tzdb' is not available for this version of R. I'm using version 4.0.5, which I believe should work.
Any suggestions on how I can get this package to work (so I can start using tidyverse)?
Edit: I've added an image of the code I ran + the outputs of sessionInfo() , options("repos") and .libPaths() below. (I'm sorry I can't copy paste code nor use the browser of the virtual machine that I work from).
https://i.stack.imgur.com/hra1r.png
It does give a warning stating that the CRAN mirror is set to an insecure URL. Could that be the problem? It didnt't seem matter for the other packages.

R Package Error(s)

I'm running into a bunch of errors when trying to install any packages on R 3.4.4 on Windows 7. Originally, installed.packages() wasn't even working. I had to create the temp directory manually that it was trying to access. I've previously installed/uninstalled R on my machine before, so I'm guessing some of these problems might be stemming from that. I can now view my installed packages.
If I try something as simple as install.packages("tidyverse"), I'll get the following:
Installing package into
‘C:/Users/areynolds/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Error in readRDS(dest) : unknown input format
Attempting update.packages() yields the same error. I've deleted my .Rhistory which saves to my Documents folder. My .libPaths() is the following:
[1] "C:/Users/areynolds/Documents/R/win-library/3.4"
[2] "C:/Program Files/R/R-3.4.4/library"
I'm not really sure what else to try. I've been looking everywhere for the same problem but it's always a little different. I've tried specifying arguments to install.packages like dependencies = TRUE or lib = path. I'd really appreciate any help. Thanks
I was getting the same error.
Closing RStudio completely, then reopening it worked for me.
Note: simply restarting the R Session (e.g. .rs.restartR()) did not work - I am not sure why

RStudio installation - yaml error messages

Having some issues helping a colleague at work install RStudio. She was getting the following error message whenever she opened up the programme and when trying to install new packages.
Error in yaml.load(readLines(con), error.label = error.label, ...) :
object 'C_unserialize_from_yaml' not found
Error in yaml.load(readLines(con), error.label = error.label, ...) :
object 'C_unserialize_from_yaml' not found
Seems to be the error that's being discussed here. We've followed the steps in the answers and haven't had any luck.
Uninstalled the yaml package, reinstalled RStudio and got a different error message (not surprising given the package was no longer installed).
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’
Then tried each of the answers in the link and ended up with the original error message again.
Beyond what I've googled in the past 15 minutes, I don't know anything about yaml or what it's supposed to do. Opening R rather than RStudio seems to work as it should.
R version is 3.4.3, RStudio is 1.1.423 for Windows and yaml version that was originally installed was 2.1.16. Not sure if it's relevant, but we are on work laptops that require us to install new programmes (and in the case of R, packages) into C:\Users\NAME\Desktop\My Software, but that seems to have been done correctly.
Any help greatly appreciated.
Thanks,
James

errors when installing older dplyr package in R

Im a bit new to R and need to use/adapt someone else code in R.
My supervisor uses R version 3.2.2 with the dplyr package version 0.4.3 (to overcome errors and problems with the original code).
I tried to install the older dplyr package with different methods:
- installed devtools package and then used the url devtools::install_url("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.1.2.tar.gz")
- manual installation (where I downloaded the file and tried to install it.) Installation seemed to have worked but when I run the code it gives a fatal error massage
Every way I've tried so far either gives a lot of error messages or a fatal error and shutdown.
When using help ?dplyr it gives a pop-up that there is an error. Does anybody have any other ideas to install this package?
Thanks!

Error in running swirl package in R

I am not able to work in swirl package in R. I am able to install the swirl
package correctly. But while giving the library("swirl") command the error comes up.I have tried every thing like I am not able to find the answer of this error on internet. I have reinstalled R complete. I have tried changing directory. But still this error message is coming. Please help.This is the error message:
library("swirl")
Error in get(Info[i, 1], envir = env) :
cannot open file
'C:/Users/Devender/Documents/R/win-library/3.2/httr/R/httr.rdb': No such
file or directory
Error: package or namespace load failed for ‘swirl’
Thanks alot in advance
Try installing httr package. I think it will solve your problem.
You did not say which R version you are using.
Some Swirl packages are not available for few R versions as 3.2.2. You cant even download any courses from Github repositories into the Swirl if Swirl was successfully loaded in R.
You may want to re-install a different version of R to avoid this Swirl issue, and try again.

Resources