[R] Warning from installing packages in R3.6.1
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Mon Sep 16 10:25:25 CEST 2019
The message you are seeing is coming from RStudio, not from R. You can
see it here:
https://github.com/rstudio/rstudio/blob/cf5076a88a219a275a2d128191c12c1f8f4e3890/src/cpp/session/modules/build/SessionBuildEnvironment.cpp#L164-L168
It's possible that updating RStudio will make it go away; if not, you
probably have to contact them to find out why it's showing up. The R
team can't do anything about it.
Duncan Murdoch
On 15/09/2019 10:07 p.m., Steven Yen wrote:
> Hello Duncan:
> Below I am sending
> (1) message from installation of a .zip file;
> (2) from installation of aod from CRAN;
> (3) from running the line sessionInfo()
>
> Looks like both installations were successful despite the warning
> message. Now the point seems to be to figure out why the warning arises.
> Thank you.
> Steven Yen
>
> ===
> > install.packages("C:/Users/Bonnie/Desktop/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/
> Installing package into ‘C:/Users/Bonnie/Documents/R/win-library/3.6’
> (as ‘lib’ is unspecified)
> 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/
> Installing package into ‘C:/Users/Bonnie/Documents/R/win-library/3.6’
> (as ‘lib’ is unspecified)
> trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/aod_1.3.1.zip'
> Content type 'application/zip' length 322953 bytes (315 KB)
> downloaded 315 KB
>
> package ‘aod’ successfully unpacked and MD5 sums checked
>
> The downloaded binary packages are in
> C:\Users\Bonnie\AppData\Local\Temp\Rtmpikl35B\downloaded_packages
>
> > sessionInfo()
> R version 3.6.1 (2019-07-05)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows 10 x64 (build 17763)
>
> Matrix products: default
>
> Random number generation:
> RNG: Mersenne-Twister
> Normal: Inversion
> Sample: Rounding
>
> locale:
> [1] LC_COLLATE=Chinese (Simplified)_China.936
> [2] LC_CTYPE=Chinese (Simplified)_China.936
> [3] LC_MONETARY=Chinese (Simplified)_China.936
> [4] LC_NUMERIC=C
> [5] LC_TIME=Chinese (Simplified)_China.936
>
> attached base packages:
> [1] stats graphics grDevices utils
> [5] datasets methods base
>
> loaded via a namespace (and not attached):
> [1] compiler_3.6.1 tools_3.6.1
>
> On 9/15/2019 11:02 PM, Duncan Murdoch wrote:
>> On 15/09/2019 1:44 a.m., Steven Yen wrote:
>>> Can someone help me understand why Rtools is needed when installing a
>>> package from CRAN, and from a zipped file? What's the point?
>>
>> Please don't just repeat your post when you've been asked for
>> additional supporting information.
>>
>> Duncan Murdoch
>>
>>>
>>> On 9/14/2019 10:29 PM, Steven Yen wrote:
>>>> Since updating to R3.6.1., I have received a WARNING message saying
>>>> Rtools is required.
>>>> I get the same message installing online from CRAN and from a .zip
>>>> file.
>>>> It looked like installation still went through in both cases, BUT,
>>>>
>>>> Another student installed a .zip file and received the following error
>>>> message:
>>>>
>>>> Error in install.packages : invalid multibyte string at `<87><55>...
>>>>
>>>> do I have to live with the message?
>>>>
>>>> I hate to tell students to install Rtools, which they do not do much
>>>> with.
>>>> Warning message is listed below. Thank you.
>>>> ---
>>>>
>>>>> Install.packages("aod")
>>>> WARNING: Rtools is required to build R packages but it is not
>>>> currently installed. Please download and install the appropriate
>>>> version of Rtools before proceeding:
>>>>
>>>> Package 'aod' successfully unpacked and MD5 sums checked.
>>>> --
>>>> syen using hqu.edu.cn
>>>
>>
>
> --
> styen using ntu.edu.tw (S.T. Yen)
>
More information about the R-help
mailing list