-1

I am trying to build an R package using RStudio on Windows 8.1. When I attempt to build the package via RStudio's Build panel I receive:

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

when I type the command in console :

install.packages("Rtools")
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘Rtools’ is not available (for R Under development)

first time building R packages in Rstudio, I got confused should I used install.packages(), or directly install .exe file from CRAN. What's the right things to do to proceed package building on Rstudio ? I used devel version of R. Can any one give me quick solution on this problem ? Thanks a lot

I downloaded Rtools.exe from CRAN and installed on my machines, both tried 33, 34.exe, and restart Rstudio, but still can't build my packages, it keep saying that :

WARNING: Rtools is required to build R packages but no version of Rtools compatible with the currently running version of R was found. Note that the following incompatible version(s) of Rtools were found:

  - Rtools 3.3 (installed at c:\Rtools)

Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Hamilton
  • 620
  • 2
  • 14
  • 32
  • 2
    Error in your assumption: There is no such package. See the 'R Installation and Administration' manual for more. – Dirk Eddelbuettel Nov 30 '16 at 20:35
  • 1
    @Jerry.Shad: that's not actually true. Either someone misinformed you or you misinterpreted something ... – Ben Bolker Nov 30 '16 at 20:40
  • @BenBolker I installed Rtools on windows, I reopen the R session, but I still can't buildd my packages, why ? I got same error still. Any idea please? – Hamilton Nov 30 '16 at 21:02
  • If you're having difficulty installing Rtools on Windows (I mean, everything is kind of difficult on Windows...) you might try looking at the **installr** package, which not only is an actual package that can be installed via `install.packages("installr")`, but it might help if you're finding the normal Rtools installation process too confusing. – joran Nov 30 '16 at 21:23
  • I gave you the advice I have to give. You can take it or not, I don't really have anything else to offer you. – joran Nov 30 '16 at 21:29
  • you said you tried to install Rtools version 3.4 (Rtools34), but I would try it again. Your installation message above suggests you're using R 3.4 (i.e. development), which is *not* compatible with Rtools33, according to the CRAN Rtools page, and the error message says you have Rtools33 installed ... – Ben Bolker Nov 30 '16 at 21:56
  • @BenBolker I set up the path, now it worked. Thanks again for your concern. – Hamilton Nov 30 '16 at 22:08

1 Answers1

2

Download from here and install like a software. https://cran.r-project.org/bin/windows/Rtools/

Kota Mori
  • 6,510
  • 1
  • 21
  • 25