Questions tagged [rtools]

use this tag for questions related to rtools for R and Windows

Rtools provides a toolchain for Windows platform that work well with R. It mainly includes GNU make, gcc compiler, and other utilities commonly used on UNIX-alike platforms.

158 questions
2
votes
1 answer

How to set Rtools PATH for R

I am having trouble with rtools. Sys.which("make") yields an empty vector (working from R Studio) Sys.which("make") "" This is my R Version R.Version()$version.string [1] "R version 4.1.3 (2022-03-10)" Apparently, this is an issue with my…
four-eyes
  • 10,740
  • 29
  • 111
  • 220
2
votes
0 answers

Install Rtools 4.0 in Conda environment

Recently I have been creating a R environment with Conda. I can install R 4.0 in an environment, but I cannot install Rtools 4.0. I have not seen a Anaconda Cloud channel with Rtools 4.0. For the moment I have just found Rtools 3.4…
vcaquilpan
  • 76
  • 1
  • 3
2
votes
1 answer

To build an R package from source fails: Win10, RStudio

Installing a package from source fails for me on my windows machine. I uninstalled RStudio, R and deleted rtools40 folder, restarted and reinstalled those items. I believe I have the path set up appropriately. Here's the code I tried, using some…
Mark Neal
  • 996
  • 16
  • 52
2
votes
0 answers

Installation failed: had non-zero exit status

I am trying to install the development version of "metafor" package using remotes::install_github("wviechtb/metafor") However, I have the following error message. I tried setting dependencies and force to TRUE with no success. . . . *** copying…
user115916
  • 186
  • 11
2
votes
2 answers

Install two versions of rtools

I have R version 4.0.2 and Rtools40 installed in windows on the local disk C:\. I recently installed Microsoft R Client version 3.5.2, in the local disk E:\. My question is how can I install Rtools35.exe on the E:\ disk without interfering with the…
Rafael Díaz
  • 2,134
  • 2
  • 16
  • 32
2
votes
0 answers

Installation of R packages using Rtools from source fails - how to fix collect2.exe: error: ld returned 1 exit status

I need to install R packages from source. This fails for ROracle, dplyr, purrr with a compilation error (see below). Interestingly it does not fail for ggplot2. I am running R-Portable 3.6.1 64bits on Windows 7 with Rtools 3.5.0.4. Relevant local…
ghlavin
  • 163
  • 7
2
votes
1 answer

Trouble downloading R package: "*.o: File format not recognized"

I'm trying to install this R package from GitHub, but to no avail. I've installed the latest versions of devtools and Rtools 3.5 (which I've made sure I added the paths to the environment variables). I've tried using install_github and…
spnc
  • 31
  • 3
2
votes
0 answers

Installing R package from github returns non-zero exit status error; GSL and Rtools correctly installed

I'm attempting to install the mvabund package from github here on Windows 10 in R 3.5.1 (The github version has functions not yet available in the cran versions.): https://github.com/aliceyiwang/mvabund I've installed Rtools, using the instructions…
Grubbmeister
  • 857
  • 8
  • 25
2
votes
3 answers

sh.exe is preventing windows cmd move command from working

I am running an old application called ACSLX. It is trying to call a DOS move command, but because sh.exe is in my path, I am getting an error. sh.exe is part of Git and also RTools, both of which I have installed. As you can see it is simply trying…
Simon Woodward
  • 1,946
  • 1
  • 16
  • 24
2
votes
1 answer

RTools Version 3.5 not compatible with R 3.5 when running inside R Studio- Has anyone experienced this issue?

I tried this command : devtools::find_rtools() Error Message I receive on R Studio: WARNING: Rtools 3.5 found on the path at C:/RBUILD~1/3.5 is not compatible with R 3.5.1. Please download and install the appropriate version of Rtools from…
1
vote
0 answers

Error in loadNamespace while building R-package

I've got a collection of functions I use that I combine in a local R-package. This works since years. Some of the functions did rely on the packages rgdal, sp, and maptools that are close to their end of life. I managed to edit the function that…
smoff
  • 592
  • 5
  • 21
1
vote
1 answer

Renv fails to compile packages but install.packages() works fine

I run into the following problem: everytime I would like to install the package "class" through renv specific commands, e.g. renv::restore() or renv::install("class@7.3-20"), I get an error message. However, if I run…
Methamortix
  • 70
  • 10
1
vote
0 answers

Unable to install R packages from source on a fresh R installation

I am trying to install rstan but am coming up with immense difficulty trying to install packages from source. I am currently running R version 4.3.0 (windows 11, 64 bit) and have installed rtools43. To illustrate the problem, if I try and run this…
Ruben222
  • 11
  • 2
1
vote
0 answers

Rtools not currently installed

I am getting an error in R studio : 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/ my…
1
vote
0 answers

Rtools fails compiling shared objects (R software - CRAN)

CRAN is asking to handles some NOTEs. In particular, they are asking to avoid specifying the c++ standard in the Makevars file according to the "CRAN incoming feseability" . Hence, I should drop the CXX_STD= CXX11 in the Makevars. A priori, it…
1 2
3
10 11