Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-09-06 Thread Tiago Olivoto
ckages/EBImage') instead of doing it for them. > > Martin > > From: Tiago Olivoto > Date: Friday, September 3, 2021 at 2:14 PM > To: Martin Morgan > Cc: Uwe Ligges , R Package Devel < > r-package-devel@r-project.org> > Subject: Re: [R-pkg-devel] Checking pack

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-09-04 Thread Martin Morgan
To: Martin Morgan Cc: Uwe Ligges , R Package Devel Subject: Re: [R-pkg-devel] Checking package dependencies before loading namespace Thanks for your response Martin, I'm definitely thinking to use BiocManager::install("EBImage") since it is the official suggestion of the Bioco

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-09-03 Thread Tiago Olivoto
Thanks for your response Martin, I'm definitely thinking to use BiocManager::install("EBImage") since it is the official suggestion of the Bioconductor community. Anyway, I've been learning a lot from this discussion. Thanks all!! Best, Tiago Em sex., 3 de set. de 2021 às 12:58, Martin Morgan esc

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-09-03 Thread Martin Morgan
The specific repository you've chosen is not what you want to do. This will always install EBImage from Bioconductor version 3.13, but Bioconductor version 3.13 is only relevant for R-4.1 (see https://bioconductor.org/about/release-announcements/) Personally, I would encourage you to follow the

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-09-01 Thread Tiago Olivoto
Thank you, Duncan and Uwe for the suggestions. I followed your instructions and created a function to check for EBImage that is only called in an interactive section and, if necessary, ask the user to install the package with install.packages("EBImage", repos=" https://bioconductor.org/packages/3.

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-08-31 Thread Uwe Ligges
Two more comments. 1. Note that your code only works in interactice mode, not when checking your package as it waits infinitely for the user's choice. 2. I do not see an advantage of installing BiocManager if EBImage is needed, the essential part is simply to select BioC as a repository to i

Re: [R-pkg-devel] Checking package dependencies before loading namespace

2021-08-31 Thread Duncan Murdoch
People shouldn't be able to install your package unless the "hard" dependencies are available. If EBImage isn't essential to your package, you should make it a "soft" dependency by listing it in Suggests and checking for it every time you use it. Duncan Murdoch On 31/08/2021 3:20 p.m., Tiag

[R-pkg-devel] Checking package dependencies before loading namespace

2021-08-31 Thread Tiago Olivoto
Dear all, I have a package called pliman which depends on the Bioconductor package EBImage. When running install.packages("pliman") I get the following warning Warning in install.packages : dependency ‘EBImage’ is not available and thus when loading t