Jose Claudio Faria
2015-Jul-19 04:05 UTC
[Rd] update.packages(checkBuilt=TRUE, ask=FALSE): possible bug
Hello,> version_ platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status Patched major 3 minor 2.1 year 2015 month 07 day 16 svn rev 68681 language R version.string R version 3.2.1 Patched (2015-07-16 r68681) nickname World-Famous Astronaut I have the options below: options(pkgType='binary') options(install.packages.check.source='no') For some, but not allI repositories I get the error message below: Error in install.packages(update[instlib == l, "Package"], l, contriburl contriburl, : specifying 'contriburl' or 'available' requires a single type, not type "both" Is it a bug? Best, ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ Jose Claudio Faria Estatistica UESC/DCET/Brasil joseclaudio.faria at gmail.com Telefones: 55(73)3680.5545 - UESC 55(73)9966.9100 - VIVO 55(73)9100.7351 - TIM 55(73)8817.6159 - OI 55(73)8129.9942 - CLARO ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ [[alternative HTML version deleted]]
peter dalgaard
2015-Jul-19 07:50 UTC
[Rd] update.packages(checkBuilt=TRUE, ask=FALSE): possible bug
> On 19 Jul 2015, at 06:05 , Jose Claudio Faria <joseclaudio.faria at gmail.com> wrote: > > Hello, > >> version > _ > platform x86_64-w64-mingw32 > arch x86_64 > os mingw32 > system x86_64, mingw32 > status Patched > major 3 > minor 2.1 > year 2015 > month 07 > day 16 > svn rev 68681 > language R > version.string R version 3.2.1 Patched (2015-07-16 r68681) > nickname World-Famous Astronaut > > I have the options below: > options(pkgType='binary') > options(install.packages.check.source='no') > > For some, but not allI repositories I get the error message below: > Error in install.packages(update[instlib == l, "Package"], l, contriburl > contriburl, : > specifying 'contriburl' or 'available' requires a single type, not type > "both" > > Is it a bug?Possibly, but I think you need to give a more reproducible example. In particular, which repositories and which packages? There is a fair amount of combinations to try... -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
Jose Claudio Faria
2015-Jul-19 11:51 UTC
[Rd] update.packages(checkBuilt=TRUE, ask=FALSE): possible bug
Dear Peter, I managed to reproduce the error in multiple repositories ( http://cran.at.r-project.org/, http://cran-r.c3sl.ufpr.br/, etc.). However, after rebooting the computer it was no longer possible to reproduce it. I'll be monitoring ... Best, ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ Jose Claudio Faria Estatistica UESC/DCET/Brasil joseclaudio.faria at gmail.com Telefones: 55(73)3680.5545 - UESC 55(73)9966.9100 - VIVO 55(73)9100.7351 - TIM 55(73)8817.6159 - OI 55(73)8129.9942 - CLARO ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ On Sun, Jul 19, 2015 at 4:50 AM, peter dalgaard <pdalgd at gmail.com> wrote:> > > On 19 Jul 2015, at 06:05 , Jose Claudio Faria < > joseclaudio.faria at gmail.com> wrote: > > > > Hello, > > > >> version > > _ > > platform x86_64-w64-mingw32 > > arch x86_64 > > os mingw32 > > system x86_64, mingw32 > > status Patched > > major 3 > > minor 2.1 > > year 2015 > > month 07 > > day 16 > > svn rev 68681 > > language R > > version.string R version 3.2.1 Patched (2015-07-16 r68681) > > nickname World-Famous Astronaut > > > > I have the options below: > > options(pkgType='binary') > > options(install.packages.check.source='no') > > > > For some, but not allI repositories I get the error message below: > > Error in install.packages(update[instlib == l, "Package"], l, contriburl > > > contriburl, : > > specifying 'contriburl' or 'available' requires a single type, not type > > > "both" > > > > Is it a bug? > > Possibly, but I think you need to give a more reproducible example. In > particular, which repositories and which packages? There is a fair amount > of combinations to try... > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com > > > > > > > > >[[alternative HTML version deleted]]
Michael Friendly
2015-Jul-29 16:55 UTC
[Rd] update.packages(checkBuilt=TRUE, ask=FALSE): possible bug
On 7/19/2015 3:50 AM, peter dalgaard wrote:>> For some, but not allI repositories I get the error message below: >> >Error in install.packages(update[instlib == l, "Package"], l, contriburl >> >contriburl, : >> > specifying 'contriburl' or 'available' requires a single type, not type >> >"both" >> > >> >Is it a bug?I think that what Jose is referring to is this error message from install.packages(), even though he set options(pkgType='binary') Isn't that a bug? Moreover, in a fresh R 3.2.1 session [Platform: x86_64-w64-mingw32/x64 (64-bit)], I see > getOption("pkgType") [1] "both" I think this is somehow related to the fact that install.packages() will now tell you if a more current source package exists and ask if you want to install from source. But this would require RTools to be installed to work. IMHO, I consider this a major infelicity or design flaw, that will cause problems for naive and even experienced users. install.packages("foo") should always work unless package "foo" cannot cannot be found in getOption("repos") -Michael