[R-pkg-devel] In Description file, how far removed should the depends go?

Dason Kurkiewicz dasonk at gmail.com
Tue Aug 29 18:39:29 CEST 2017


You just need to list the packages that you explicitly depend on.
Most likely you should be using imports instead of "depends" but
that's a different issue.  It might seem like you're doing the user a
favor by making it explicit *all* the packages that will end up on
their system if your package is installed but what happens when a
package you use changes the packages that it depends on?  Are you
going to take the time to check n layers deep to make sure your
dependency list matches what should be on the users system?  If a
package you use drops one of the other packages that they used to
import in favor of a different package and you don't notice it then
you're going to end up installing a package on the user's system that
they don't actually need.

tldr: Just list the packages you explicitly need.

-Dason Kurkiewicz

On Tue, Aug 29, 2017 at 12:24 PM, Roy Mendelssohn - NOAA Federal
<roy.mendelssohn at noaa.gov> wrote:
> HI All:
>
> What is best practice for the "depends" in the Description file,  in terms of how of how many layers down do I list depends?  For example,  if my package depends on the rerddap package,  is it best practice  to just list rerddap in the depends,  or should I also list all the packages rerddap depends on  - which can go many layers deep.  What is best practice for this?
>
> Thanks,
>
> -Roy
>
> **********************
> "The contents of this message do not reflect any position of the U.S. Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected"
> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list