I cannot install nearly no package and Rtool is installed (I could install the car Package and R has no problems with instlling packages, only RStudio. I deinstalled R, RStudio andRtools and installed it again, this did not help. I did not have the problems some months ago.
I would be very gölad about help!
RStudio-2022.02.0-443.exe, Windows 10
install.packages("knitr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Fuer Lehrzwecke zusammengestellt vom
Institut fuer Angewandte Statistik und EDV, BOKU Wien
Anleitungen finden Sie unter:
Das aktuelle Arbeitsverzeichnis ist:
C:/Users/irauscher/Documents
Zum Starten des R Commanders tippen Sie bitte:
library("Rcmdr")
bzw.
library("RcmdrPlugin.iasc")
installing source package 'knitr' ...
** Paket 'knitr' erfolgreich entpackt und MD5 Summen überprüft
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.13 is being loaded, but >= 0.27 is required
ERROR: lazy loading failed for package 'knitr'
removing 'C:/Users/irauscher/Documents/R-portabel/library/knitr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
What are your R and RTools versions? Maybe you have not installed a suitable version of RTools for your R version or you haven't configured it correctly.
After installation is complete, you need to perform one more step to be able to compile R packages: we put the location of the Rtools make utilities ( bash , make , etc) on the PATH . The easiest way to do so is by creating a text file .Renviron in your Documents folder which contains the following line:
PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
You can do this with a text editor, or from R like so (note that in R code you need to escape backslashes):
Thnk you very much!
I added the path in R, after that make was found, but still afer starting the computer WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
after trying to instll.packege("knitr") or other
Maybe you are overwriting the location with another .Renviron file, it is hard to tell without having access to your system. The installation instructions should work out of the box, they do for most people so I suspect this is a a misconfiguration specific to your system.