Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Duncan Murdoch
On 13/11/2020 4:32 p.m., Gábor Csárdi wrote: On Fri, Nov 13, 2020 at 9:02 PM Duncan Murdoch wrote: [...] Things may have changed since Henrik and I wrote the code, but his description matches my understanding as well (and I think he's contributed more recently than I have). The way non-Sweave

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
On Fri, Nov 13, 2020 at 9:02 PM Duncan Murdoch wrote: [...] > Things may have changed since Henrik and I wrote the code, but his > description matches my understanding as well (and I think he's > contributed more recently than I have). > > The way non-Sweave vignettes work is that some packages re

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Duncan Murdoch
On 13/11/2020 1:48 p.m., Gábor Csárdi wrote: On Fri, Nov 13, 2020 at 6:10 PM Henrik Bengtsson wrote: I'm quite sure you want to use the following: Suggests: knitr, rmarkdown, formatR VignetteBuilder: knitr So this means that WRE is wrong? It says: > "Note that if, for example, a vignette

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
On Fri, Nov 13, 2020 at 6:10 PM Henrik Bengtsson wrote: > > I'm quite sure you want to use the following: > > Suggests: knitr, rmarkdown, formatR > VignetteBuilder: knitr So this means that WRE is wrong? It says: "Note that if, for example, a vignette has engine ‘knitr::rmarkdown’, then knitr pr

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Joseph Park
Thank you for the clarification. J Park On 11/13/20 1:09 PM, Henrik Bengtsson wrote: > I'm quite sure you want to use the following: > > Suggests: knitr, rmarkdown, formatR > VignetteBuilder: knitr > > Here are the details. For the 'VignetteBuilder' field, you want to > put all packages that pro

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Henrik Bengtsson
I'm quite sure you want to use the following: Suggests: knitr, rmarkdown, formatR VignetteBuilder: knitr Here are the details. For the 'VignetteBuilder' field, you want to put all packages that provide the **vignette engines** you are using. For example, if your package vignettes use either of

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Joseph Park
Thank you. On 11/13/20 10:31 AM, Gábor Csárdi wrote: > >From WRE: > > "Note that if, for example, a vignette has engine ‘knitr::rmarkdown’, > then knitr provides the engine but both knitr and rmarkdown are needed > for using it, so both these packages need to be in the > ‘VignetteBuilder’ field an

Re: [R-pkg-devel] Import package countreg that is not on CRAN

2020-11-13 Thread Duncan Murdoch
Yes, thanks, I missed that option. On 13/11/2020 10:11 a.m., Henrik Bengtsson wrote: You can change your package from using: Imports: countreg to use: Suggests: countreg For this to work, you'll have to update your code, package tests, examples, and vignettes, to run conditionally on '

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
>From WRE: "Note that if, for example, a vignette has engine ‘knitr::rmarkdown’, then knitr provides the engine but both knitr and rmarkdown are needed for using it, so both these packages need to be in the ‘VignetteBuilder’ field and at least suggested (as rmarkdown is only suggested by knitr, an

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Joseph Park
Ah, yes... I see it now in Writing R Extensions.  Apologies for the oversight. Regarding rmarkdown, is it redundant to include rmarkdown in VignetteBuilder if it is in Suggests, or is perhaps needed in the build config as a separate entity? e.g: Suggests: knitr, rmarkdown VignetteBuilder: k

Re: [R-pkg-devel] Import package countreg that is not on CRAN

2020-11-13 Thread Henrik Bengtsson
You can change your package from using: Imports: countreg to use: Suggests: countreg For this to work, you'll have to update your code, package tests, examples, and vignettes, to run conditionally on 'countreg' being installed, e.g. if (requireNamespace("countreg", quietly = TRUE)) { ...

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
I think you need to Suggest the formatR package, because your vignettes use it. From 'Writing R extensions': "Many packages using knitr also need the package formatR which it suggests and so the user package needs to do so too and include this in ‘VignetteBuilder’." Gabor On Fri, Nov 13, 2020 at

[R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Joseph Park
Dear r-package-devel, The rEDM package is failing the automated check, as noted here: https://win-builder.r-project.org/incoming_pretest/rEDM_1.7.0_20201113_131811/Windows/00check.log When running rhub::check_for_cran(), disk file errors were reported. The automated check seems to be failing wi

Re: [R-pkg-devel] Import package countreg that is not on CRAN

2020-11-13 Thread Duncan Murdoch
On 13/11/2020 3:10 a.m., Jason Luo wrote: Hi, I'm submitting a new package (https://github.com/Penncil/pda/) to CRAN. It relies on some function (zerotrunc and hurdle in R/ODAP.R) from countreg ( https://rdrr.io/rforge/countreg/) , which is not on CRAN. The submission returns error as below htt

Re: [R-pkg-devel] Import package countreg that is not on CRAN

2020-11-13 Thread Uwe Ligges
You cannot use strong dependencies to packages that are not in standard repositories such as CRAN or BioC. Best, Uwe Ligges On 13.11.2020 09:10, Jason Luo wrote: Hi, I'm submitting a new package (https://github.com/Penncil/pda/) to CRAN. It relies on some function (zerotrunc and hurdle in R

[R-pkg-devel] Import package countreg that is not on CRAN

2020-11-13 Thread Jason Luo
Hi, I'm submitting a new package (https://github.com/Penncil/pda/) to CRAN. It relies on some function (zerotrunc and hurdle in R/ODAP.R) from countreg ( https://rdrr.io/rforge/countreg/) , which is not on CRAN. The submission returns error as below https://win-builder.r-project.org/incoming_pret