0

ever since I reinstalled my computer after some updates and tried to install FSelector and it failed, I am getting this error whenever I try to download or install a package:

> install.packages("FSelector")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/myName/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/FSelector_0.34.zip'
Content type 'application/zip' length 96270 bytes (94 KB)
downloaded 94 KB

package ‘FSelector’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\myName\AppData\Local\Temp\Rtmp6rtkGH\downloaded_packages
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'which': argument "lst" is missing, with no default
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'which': argument "lst" is missing, with no default
11
  • 2
    Have you installed RTools as the first line directs? Commented Oct 6 at 18:00
  • yes. search-ms:displayname=Search%20Results%20in%20Home&crumb=location:%3A%3A{F874310E-B6B7-47DC-BC84-B9E6B38F5903}\Rtools 4.5 >>> but it doesn't recognize it > library(Rtools) Error in library(Rtools) : there is no package called ‘Rtools’ Commented Oct 6 at 18:07
  • >>> I try to reinstall Rtools and get this install loop: > install.packages("Rtools") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: even though it's in downloads: rtools45-6608-6492(1) Commented Oct 6 at 18:07
  • Sometimes I get this: > library(FSelector) Error: package or namespace load failed for ‘FSelector’: .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined from the Registry In addition: Warning message: package ‘FSelector’ was built under R version 4.4.3 Commented Oct 6 at 18:23
  • 4
    RTools is not an R package. You cannot run install.packages("Rtools") You need to download and install from here: cran.r-project.org/bin/windows/Rtools Commented Oct 6 at 18:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.