R-Help Recently I've started receiving the following message when updating packages - "Do you want to install from sources the packages which need compilation." I generally click "Yes," but what is this asking me. That is it appears to be re-compiling certain packages? Why? RStudio version: 1.2.5033 R version: 3.6.3 Sincerely Jeff Reichman [[alternative HTML version deleted]]
Because pre-compiled (binary) versions of packages are getting built slower than the introduction of new versions of the packages are getting approved. On March 11, 2020 7:46:22 AM PDT, Jeff Reichman <reichmanj at sbcglobal.net> wrote:>R-Help > > > >Recently I've started receiving the following message when updating >packages >- "Do you want to install from sources the packages which need >compilation." >I generally click "Yes," but what is this asking me. That is it appears >to >be re-compiling certain packages? Why? > > > >RStudio version: 1.2.5033 > >R version: 3.6.3 > > > > > >Sincerely > > > >Jeff Reichman > > > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
Hi, This means that the package you were trying to install does not have a compiled version stored on the server. Sometimes you would not see the question because the server has compiled the package for you, but sometimes it doesn't. Cheers, Jiefei On Wed, Mar 11, 2020 at 10:46 AM Jeff Reichman <reichmanj at sbcglobal.net> wrote:> R-Help > > > > Recently I've started receiving the following message when updating > packages > - "Do you want to install from sources the packages which need > compilation." > I generally click "Yes," but what is this asking me. That is it appears to > be re-compiling certain packages? Why? > > > > RStudio version: 1.2.5033 > > R version: 3.6.3 > > > > > > Sincerely > > > > Jeff Reichman > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
On 11/03/2020 7:46 a.m., Jeff Reichman wrote:> R-Help > > > > Recently I've started receiving the following message when updating packages > - "Do you want to install from sources the packages which need compilation." > I generally click "Yes," but what is this asking me. That is it appears to > be re-compiling certain packages? Why? >As the others answered: that's because compiled versions aren't available on the server yet. What they didn't say is why you might want to say "no". You would say that if you expect the compile on your own system to fail, perhaps because you don't have compilers or special libraries installed. R can install packages whose source is all in R, but needs external tools to install packages that incorporate other languages like C, C++ and Fortran. Even if you have those compilers, some packages will need to link to libraries outside of R. If you say "no", then R will look for an older compiled version of the package and install that. This might cause trouble if some other package depends on the latest version of its dependencies: you won't be able to install the latest version of that package either. I'd recommend trying with "yes", then trying again with "no" if there were any install failures. Duncan Murdoch
Thank you all - that was helpful. I guess I assumes everything that got pushed up to the server was already compiled. -----Original Message----- From: Duncan Murdoch <murdoch.duncan at gmail.com> Sent: Wednesday, March 11, 2020 10:10 AM To: reichmanj at sbcglobal.net; r-help at r-project.org Subject: Re: [R] Installing Packages On 11/03/2020 7:46 a.m., Jeff Reichman wrote:> R-Help > > > > Recently I've started receiving the following message when updating > packages > - "Do you want to install from sources the packages which need compilation." > I generally click "Yes," but what is this asking me. That is it > appears to be re-compiling certain packages? Why? >As the others answered: that's because compiled versions aren't available on the server yet. What they didn't say is why you might want to say "no". You would say that if you expect the compile on your own system to fail, perhaps because you don't have compilers or special libraries installed. R can install packages whose source is all in R, but needs external tools to install packages that incorporate other languages like C, C++ and Fortran. Even if you have those compilers, some packages will need to link to libraries outside of R. If you say "no", then R will look for an older compiled version of the package and install that. This might cause trouble if some other package depends on the latest version of its dependencies: you won't be able to install the latest version of that package either. I'd recommend trying with "yes", then trying again with "no" if there were any install failures. Duncan Murdoch