How to list recursive package dependency prior to installation/upgrade of a package

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to list recursive package dependency prior to installation/upgrade of a package

Sebastien Bihorel
Hi

Is there an elegant way to recursive list all dependencies of a package prior to its installation or upgrade?

I am particularly interested in finding which of the packages currently installed in my test/production environment would require an upgrade prior to actual installation/upgrade of a package.

Can the packrat package help with this?

Thank you

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to list recursive package dependency prior to installation/upgrade of a package

R help mailing list-2
> tools::package_dependencies("lme4")
$lme4
 [1] "Matrix"    "methods"   "stats"     "graphics"  "grid"      "splines"
 [7] "utils"     "parallel"  "MASS"      "lattice"   "boot"      "nlme"
[13] "minqa"     "nloptr"    "Rcpp"      "RcppEigen"

> tools::package_dependencies("lme4", recursive=TRUE)
$lme4
 [1] "Matrix"    "methods"   "stats"     "graphics"  "grid"      "splines"
 [7] "utils"     "parallel"  "MASS"      "lattice"   "boot"      "nlme"
[13] "minqa"     "nloptr"    "Rcpp"      "RcppEigen" "grDevices"

Use reverse=TRUE to list packages that depend on the given package.
Bill Dunlap
TIBCO Software
wdunlap tibco.com


On Thu, Mar 14, 2019 at 12:09 PM Sebastien Bihorel <
[hidden email]> wrote:

> Hi
>
> Is there an elegant way to recursive list all dependencies of a package
> prior to its installation or upgrade?
>
> I am particularly interested in finding which of the packages currently
> installed in my test/production environment would require an upgrade prior
> to actual installation/upgrade of a package.
>
> Can the packrat package help with this?
>
> Thank you
>
> ______________________________________________
> [hidden email] 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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to list recursive package dependency prior to installation/upgrade of a package

Sebastien Bihorel
That is great!

Is there a way to know version required in the dependent packages?


From: "William Dunlap" <[hidden email]>
To: "Sebastien Bihorel" <[hidden email]>
Cc: [hidden email]
Sent: Thursday, March 14, 2019 3:50:58 PM
Subject: Re: [R] How to list recursive package dependency prior to installation/upgrade of a package

> tools::package_dependencies("lme4")
$lme4
[1] "Matrix" "methods" "stats" "graphics" "grid" "splines"
[7] "utils" "parallel" "MASS" "lattice" "boot" "nlme"
[13] "minqa" "nloptr" "Rcpp" "RcppEigen"

> tools::package_dependencies("lme4", recursive=TRUE)
$lme4
[1] "Matrix" "methods" "stats" "graphics" "grid" "splines"
[7] "utils" "parallel" "MASS" "lattice" "boot" "nlme"
[13] "minqa" "nloptr" "Rcpp" "RcppEigen" "grDevices"

Use reverse=TRUE to list packages that depend on the given package.
Bill Dunlap
TIBCO Software
wdunlap [ http://tibco.com/ | tibco.com ]


On Thu, Mar 14, 2019 at 12:09 PM Sebastien Bihorel < [ mailto:[hidden email] | [hidden email] ] > wrote:


Hi

Is there an elegant way to recursive list all dependencies of a package prior to its installation or upgrade?

I am particularly interested in finding which of the packages currently installed in my test/production environment would require an upgrade prior to actual installation/upgrade of a package.

Can the packrat package help with this?

Thank you

______________________________________________
[ mailto:[hidden email] | [hidden email] ] mailing list -- To UNSUBSCRIBE and more, see
[ https://stat.ethz.ch/mailman/listinfo/r-help | https://stat.ethz.ch/mailman/listinfo/r-help ]
PLEASE do read the posting guide [ http://www.r-project.org/posting-guide.html | http://www.R-project.org/posting-guide.html ]
and provide commented, minimal, self-contained, reproducible code.





        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to list recursive package dependency prior to installation/upgrade of a package

R help mailing list-2
available.packages() and installed.packages() map package names to version
and a lot of other things.

Bill Dunlap
TIBCO Software
wdunlap tibco.com


On Thu, Mar 14, 2019 at 1:03 PM Sebastien Bihorel <
[hidden email]> wrote:

> That is great!
>
> Is there a way to know version required in the dependent packages?
>
> ------------------------------
> *From: *"William Dunlap" <[hidden email]>
> *To: *"Sebastien Bihorel" <[hidden email]>
> *Cc: *[hidden email]
> *Sent: *Thursday, March 14, 2019 3:50:58 PM
> *Subject: *Re: [R] How to list recursive package dependency prior to
> installation/upgrade of a package
>
> > tools::package_dependencies("lme4")
> $lme4
>  [1] "Matrix"    "methods"   "stats"     "graphics"  "grid"
> "splines"
>  [7] "utils"     "parallel"  "MASS"      "lattice"   "boot"      "nlme"
>
> [13] "minqa"     "nloptr"    "Rcpp"      "RcppEigen"
>
> > tools::package_dependencies("lme4", recursive=TRUE)
> $lme4
>  [1] "Matrix"    "methods"   "stats"     "graphics"  "grid"
> "splines"
>  [7] "utils"     "parallel"  "MASS"      "lattice"   "boot"      "nlme"
>
> [13] "minqa"     "nloptr"    "Rcpp"      "RcppEigen" "grDevices"
>
> Use reverse=TRUE to list packages that depend on the given package.
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
>
> On Thu, Mar 14, 2019 at 12:09 PM Sebastien Bihorel <
> [hidden email]> wrote:
>
>> Hi
>>
>> Is there an elegant way to recursive list all dependencies of a package
>> prior to its installation or upgrade?
>>
>> I am particularly interested in finding which of the packages currently
>> installed in my test/production environment would require an upgrade prior
>> to actual installation/upgrade of a package.
>>
>> Can the packrat package help with this?
>>
>> Thank you
>>
>> ______________________________________________
>> [hidden email] 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]]

______________________________________________
[hidden email] 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.