Dr Eberhard W Lisse
2020-Dec-23 14:38 UTC
[R] FInd packages in need of Update (like RStudio)
Hi, does anyone know how one would look which packages require an update (like the Tools -> Update Packages) but can do it from R (ie Rscript) or any other way from the command line (on the MAc) I would like to build this into my update script which currently does brew, cpan and pip3 :-)-O greetings, el -- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist el at lisse.NA / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply
Does update.packages() meet your needs? Sarah On Wed, Dec 23, 2020 at 9:39 AM Dr Eberhard W Lisse <el at lisse.na> wrote:> > Hi, > > does anyone know how one would look which packages require an update > (like the Tools -> Update Packages) but can do it from R (ie Rscript) or > any other way from the command line (on the MAc) > > I would like to build this into my update script which currently does > brew, cpan and pip3 :-)-O > > greetings, el > -- > Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist > el at lisse.NA / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP > 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply > > ______________________________________________ > 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.-- Sarah Goslee (she/her) http://www.numberwright.com
This is not normally something one would apply automatically, as it can break existing code. But wouldn't?update.packages be the obvious choice interactively? On December 23, 2020 6:38:41 AM PST, Dr Eberhard W Lisse <el at lisse.NA> wrote:>Hi, > >does anyone know how one would look which packages require an update >(like the Tools -> Update Packages) but can do it from R (ie Rscript) >or >any other way from the command line (on the MAc) > >I would like to build this into my update script which currently does >brew, cpan and pip3 :-)-O > >greetings, el-- Sent from my phone. Please excuse my brevity.
On Wed, Dec 23, 2020 at 8:09 PM Dr Eberhard W Lisse <el at lisse.na> wrote:> > Hi, > > does anyone know how one would look which packages require an update > (like the Tools -> Update Packages) but can do it from R (ie Rscript) or > any other way from the command line (on the MAc)? old.packages Best, -Deepayan> I would like to build this into my update script which currently does > brew, cpan and pip3 :-)-O > > greetings, el > -- > Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist > el at lisse.NA / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP > 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply > > ______________________________________________ > 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.