Problem:
I am developing an R package and one of the dependent packages is multtest. It's only available on Bioconductor as here. I am using devtools to build the package. And, when I run devtools::install() on R console, I would like multtest to automatically install as with my other CRAN packages if it is not already installed. I do know how to install Bioconductor packages manually.
Researched Solutions:
The following links suggest that I should put
biocViews:
in the Description file of the package for automatic installation of the Bioconductor packages.
biocViews:
is in the line aboveImports:
(I am not sure where it is placed matters as much?) and the Bioconductor package to be installed is put underImports:
as herebiocViews:
is in the line aboveImports:
and the Bioconductor package to be installed is put right after likebiocViews: multtest
. This exact answer is at the end of a non-voted thread in response to Vivian by Vivekbhr as here
I have also followed up and checked the description file of the packages which rely on Bioconductor as here
Attempted Solutions:
I have followed those research solutions by putting multtest along with biocViews:
, below biocViews:
, under Imports:
. All of them came back with package dependency or package not found errors as in the pictures below.
Then, I manually re-installed multtest and it works. However, I still would like to have the automatic installation capability as mentioned here under the Imports
section in Hadley's book as here
Is it possible? Am I misunderstanding something or doing something wrong?
Thank you very much!