Message-ID: <5BF268E3-97F3-4D82-BF88-2787D09424D4@comcast.net>
Date: 2018-05-07T19:35:17Z
From: David Winsemius
Subject: Installing required packages with an R package
In-Reply-To: <CAFAkCyWOB3HPDej5nKRROQCA8ahuFXW1V2b_L_3CJ=xV4XuaPQ@mail.gmail.com>
> 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