[R] Rtools required

Steven @yen @end|ng |rom hqu@edu@cn
Thu Apr 30 19:35:09 CEST 2020


Thank you all. In sum, installing packages from RStudio 1.2.5042 without 
Rtools present, I received warnings saying RTools required but 
installation nevertheless was successful.

Installing from R-4.0.0 directly, I have no problem.

This is obviously an RStudio problem but unfortunately they are not 
willing to help free version users. I feel so sorry having to post it here.

===

1. IN RStudio I reun the following to install from CRAC and from local a 
file, respectively:

Tools -> Install Packages -> (Choose Repository CRAN from pull-down menu)

Tools -> Install Packages -> (Packages, Archice, Files (.zip; .tar.gz) 
from pull-down menu)

In both cases, I received warning messages saying Rtools is required... 
but nevertheless the installation is successful.

2. Installing from R-4.0.0 directly, installation were successful 
without warning.

---

Install log listed below.

 > install.packages("A:/R/yenlib1_1.1.0.zip", repos = NULL, type = 
"win.binary")
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/
package ‘yenlib1’ successfully unpacked and MD5 sums checked

 > install.packages("aod")
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/
嘗試 URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/aod_1.3.1.zip'
Content type 'application/zip' length 382219 bytes (373 KB)
downloaded 373 KB

package ‘aod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\Rtmpsf04GM\downloaded_packages


<><><> Install from R4.0.0 directly: Worked fine <><>

Packages -> Install Packages
(Worked fine after selecting a Mirror)

 > utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
嘗試 URL 
'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/4.0/aod_1.3.1.zip'
Content type 'application/zip' length 382219 bytes (373 KB)
downloaded 373 KB

package ‘aod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\RtmpauyB5Q\downloaded_packages

Packages -> Install Packages from local file

 > utils:::menuInstallLocal()
package ‘yenlib1’ successfully unpacked and MD5 sums checked
 >



On 2020/4/30 下午 04:38, Jeroen Ooms wrote:
> On Wed, Apr 29, 2020 at 11:37 PM Steven <syen using hqu.edu.cn> wrote:
>> Hello John,
>>
>> Perhaps you can help me. I am an idiot. I visited the Rtools web page
>> and learn to run the following lines in R: Still I am getting the same
>> warning message.
>>
>>   > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
>> "~/.Renviron")
>>   > Sys.which("make")
>>                                 make
>> "C:\\rtools40\\usr\\bin\\make.exe"
> That looks OK. Did you restart rstudio?
>
> How exactly are getting this error? Are you using install.packages()
> in R? Or using the pkgbuild package?
>
> Also are you running the latest version of rstudio? I think old
> versions may have had difficulty finding rtools40.



More information about the R-help mailing list