Search
Question: Does anyone need to install an R package which is used by another package as importFrom(.,.)?
0
gravatar for Mohamad S. Hasan
4 months ago by
Mohamad S. Hasan0 wrote:

Hi,

I developed an R package called "OPWeight", now in Bioconductor issue 395. This package uses qvalue, tibble and boxcox from the packages qvalue, tibble, and MASS, resectively by the command importFrom(..., ...). If anyone wants to use the package "OPWeight", will OPWeight automatically install qvalue, tibble, and MASS?

Thank you

R
ADD COMMENTlink modified 4 months ago by Lluís R300 • written 4 months ago by Mohamad S. Hasan0
3
gravatar for Lluís R
4 months ago by
Lluís R300
European Union
Lluís R300 wrote:

Depends on where do you write those packages in the DESCRIPTION package, if in Depends or in Imports the behaviour is different. See  this, or Hadley page, and the original source describing the Description file. See also this question on Stack Overflow.

ADD COMMENTlink modified 4 months ago • written 4 months ago by Lluís R300
1

The packages have to be in Imports: or Depends: for them to be mentioned in importFrom(), so once OPWeight is in Bioconductor (or other CRAN-style) repository biocLite() / install.packages() will install them without the user needing to take any additional action.

ADD REPLYlink written 4 months ago by Martin Morgan ♦♦ 20k

@Morgan Thank you so much! 

ADD REPLYlink modified 4 months ago • written 4 months ago by Mohamad S. Hasan0

Lluís R Thank you so much for these useful links! 

ADD REPLYlink modified 4 months ago • written 4 months ago by Mohamad S. Hasan0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 142 users visited in the last hour