package ‘IsolationForest’ is not available - r

I am trying to use the Isolation Forest package in R to run some code. I had RStudio 3.3.1 but I kept getting an error "package ‘IsolationForest’ is not available"! Looking at the description file it says it depends on R >= 2.0.0, so I got RStudio 2.15.2, instead. However, I get the same problem again. Can someone help me with this situation? I am using Windows 7 for RStudio 2.15.2

Related

R Session Aborted while loading RWeka

I cannot load RWeka library in Rstudio session while I have got it installed without problems.
The library(RWeka) command is simply interrupted by a "R Session Aborted" error and R is restarted.
I'm currently working with
Windows 10
RStudio 2022.02.2 Build 485
R 4.2.0
I have tried to load RWeka running R in a terminal and I haven't had any problem.
Any suggestion will be wellcome.
Kind Regards.
I had the same issue and I've confirmed it on Twitter. I have now found a solution: you need to install a patched version of R, available here: https://cran.r-project.org/bin/windows/base/rpatched.html. Take care to select the patched version in RStudio and then the crash should disappear.

R Session Aborted and R encountered a fatal error

I have been using Rstudio for a while and there was no problem until I was trying to install rJava and xlsx package in R. I had updated both my RGui and Rstudio to the latest version (also downloaded java x64 bit for my desktop since earlier I had a Java_Home error message trying to install both rJava and xlsx package) and I was able to install both rJava and xlsx in Rstudio, but when I use
library(xlsx)
I encountered the R session aborted message. This happen every time even when I already closed the application and tried to open it again.
I'm currently using 2022.02.2 Build 485 for my Rstudio and 4.20.0 for my RGui. Anyone knows what I can do with this?
edit: I ended up using a different package to read my excel file (read_excel) for my data which worked very well. However, I still don't know what is the problem with my 'xlsx' package
This issue has been discussed in RStudio Community
https://community.rstudio.com/t/package-xlsx-error/136288
You should install a patched version
https://cran.r-project.org/bin/windows/base/rpatched.html

How to install Package MVTNORM

I am trying to install package mvtnorm, but it says that package ‘mvtnorm’ is not available (for R version 3.4.4)....
I believe this is happening cause of R version..... but When I am trying to upgrade R...it is not allowing me to do so.
I tried to install package "installr" for upgrading R, but it showed the same error - "installr’ is not available (for R version 3.4.4).
There is update tab under "HELP" on the console panel of the studio...it is not responding....
I am using Linux machine for the first time...so i am really confused on how to go about.
I hope to get this thing solved with some help from an expert who can guide me on how to proceed.

"Non-zero exit status" error message when installing ggplot2 in RStudio

I have previously used ggplot2, in fact I was using the package as this problem arose.
I updated all of my packages, and found that I could no longer access basic packages (ggplot2, tidyvers, dplyr ect). When I try to install packages via install.packages("ggplot2"), I receive the error message attached below.
I then proceed to use the library with library(ggplot2), and the error message, "there is no package called ‘ggplot2’" is deployed. I am using R version 3.5.1 and R studio 1.1.423. I am using Mac version 10.12.6 (macOS Sierra), using an outdated version for other reasons. I am writing my current code in RStudio. Can anyone decipher what is going on with my code?
Error message seen when command line tools were updated
Error Message 2

Can't install any packages in R

Title says the core of it. I've been wanting to learn R and I thought that swirl sounded nice. I can't get swirl to install, so just as an experiment I tried another package. I get the same error message. I'm getting this in both R and R Studio.
My input and error message are here:
install.packages("swirl")
## package ‘swirl’ is available as a source package but not as a binary
## Warning message:
## package ‘swirl’ is not available (for R Under development)
The first time I tried it I did get to chose a CRAN mirror, but otherwise I've been just spinning my gears.
I'm on a Mac and running OS X Yosemite, I tried looking for any issues similar to this and I am stuck. Any help is appreciated.
It looks like you're using a bleeding edge version of R ("R Under development").
Downgrade to the latest stable version and you should be fine.

Resources