Re: [R-pkg-devel] In Description file, how far removed should the depends go?
Thanks I meant Imports, just wasn't thinking. The main issue was how deep to recurse. -Roy > On Aug 29, 2017, at 9:50 AM, Uwe Ligges> wrote: > > > > On 29.08.2017 18:24, Roy Mendelssohn - NOAA Federal 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? > > Only rerddap, and ideally in Imports rather than Depends. > > Best, > Uwe Ligges > > >> 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.mendelss...@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@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-package-devel ** "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.mendelss...@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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] In Description file, how far removed should the depends go?
On 29.08.2017 18:24, Roy Mendelssohn - NOAA Federal 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? Only rerddap, and ideally in Imports rather than Depends. Best, Uwe Ligges 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.mendelss...@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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] In Description file, how far removed should the depends go?
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 Federalwrote: > 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.mendelss...@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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[R-pkg-devel] In Description file, how far removed should the depends go?
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.mendelss...@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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel