Re: [R] Handling dependencies on Bioconductor packages for packages on CRAN

2021-12-07 Thread Martin Morgan
One possibility is to make graph a Suggests: dependency, and preface any code using it (or, e.g., in an .onLoad function) with if (!requireNamespace("graph", quietly = TRUE)) stop( "install the Bioconductor 'graph' package using these commands\n\n", ## standard Bioconductor pack

Re: [R] Handling dependencies on Bioconductor packages for packages on CRAN

2021-12-04 Thread Bert Gunter
I suggest you post this on r-package-devel. That seems a better fit. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Dec 4, 2021 at 7:55 AM Søren Højsgaar

[R] Handling dependencies on Bioconductor packages for packages on CRAN

2021-12-04 Thread Søren Højsgaard
Dear all My gRbase package imports the packages from Bioconductor: graph, RBGL and Rgraphviz If these packages are not installed, then gRbase can not be installed. The error message is: ERROR: dependency ‘graph’ is not available for package ‘gRbase’ If I, prior to installation, run setRepo