Does anyone need to install an R package which is used by another package as importFrom(.,.)?
1
0
Entering edit mode
@mohamad-s-hasan-13264
Last seen 4.4 years ago

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 • 1.1k views
ADD COMMENT
3
Entering edit mode
@lluis-revilla-sancho
Last seen 8 hours ago
European Union

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 COMMENT
1
Entering edit mode

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 REPLY
0
Entering edit mode

@Morgan Thank you so much! 

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 855 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6