Polychronis Kostoulas
2018-May-07 18:06 UTC
[R] Installing required packages with an R package
Dear All, I am preparing an R-package and I would like to ask how do I make it check whether dependencies (i.e. other packages) are already installed in a machine and if they are not installed to automatically install them during its installation. Thanks, Polychronis Polychronis Kostoulas [[alternative HTML version deleted]]
This is better posted on the R-packages mailing list, not here. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, May 7, 2018 at 11:06 AM, Polychronis Kostoulas < polychronis.kostoulas at gmail.com> wrote:> Dear All, > I am preparing an R-package and I would like to ask how do I make it check > whether dependencies (i.e. other packages) are already installed in a > machine and if they are not installed to automatically install them during > its installation. > > Thanks, > Polychronis > > Polychronis Kostoulas > > [[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]]
R-package-devel is the better venue, as r-packages is only for announcements. On May 7, 2018 12:17:34 PM PDT, Bert Gunter <bgunter.4567 at gmail.com> wrote:>This is better posted on the R-packages mailing list, not here. > >Cheers, >Bert > >Bert Gunter > >"The trouble with having an open mind is that people keep coming along >and >sticking things into it." >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > >On Mon, May 7, 2018 at 11:06 AM, Polychronis Kostoulas < >polychronis.kostoulas at gmail.com> wrote: > >> Dear All, >> I am preparing an R-package and I would like to ask how do I make it >check >> whether dependencies (i.e. other packages) are already installed in a >> machine and if they are not installed to automatically install them >during >> its installation. >> >> Thanks, >> Polychronis >> >> Polychronis Kostoulas >> >> [[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]] > >______________________________________________ >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.
> On May 7, 2018, at 11:06 AM, Polychronis Kostoulas <polychronis.kostoulas at gmail.com> wrote: > > Dear All, > I am preparing an R-package and I would like to ask how do I make it check > whether dependencies (i.e. other packages) are already installed in a > machine and if they are not installed to automatically install them during > its installation. >The right place to ask is the package-dev mailing list. It is possible to list dependencies and then users can specify dependencies=TRUE in their call to install.packages. I also know that there have been super-packages that do install multiple other packages. When you issue the command `library(tidyverse)` you get a boatload of packages loaded at once, so why not look at that example. It has R code in several modules. The other mechanism I've seen is to construct a github page that has the needed code.> Thanks, > Polychronis > > Polychronis Kostoulas > > [[alternative HTML version deleted]]Rhelp is also a plain text mailing list.> > ______________________________________________ > 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.David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law