[R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'
Joseph Park
Jo@ephP@rk @end|ng |rom IEEE@org
Fri Nov 13 16:47:18 CET 2020
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 and at least suggested (as rmarkdown is only
> suggested by knitr, and hence not available automatically along with
> it). 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’."
>
> So I think you need
>
> Suggests: knitr, rmarkdown, formatR
> VignetteBuilder: knitr, rmarkdown, formatR
>
> On Fri, Nov 13, 2020 at 3:23 PM Joseph Park <JosephPark using ieee.org> wrote:
>> 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: knitr, formatR
>>
>> or
>>
>> Suggests: knitr, rmarkdown
>> VignetteBuilder: knitr, rmarkdown, formatR
>>
>> Thank you.
>>
>> J Park
>>
>> On 11/13/20 8:58 AM, Gábor Csárdi wrote:
>>> 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 1:49 PM Joseph Park <JosephPark using ieee.org> wrote:
>>>> 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 with:
>>>>
>>>> Error in loadNamespace(x) : there is no package called 'formatR'
>>>>
>>>> This package does not explicitly use formatR:
>>>>
>>>> Imports: methods, Rcpp (>= 1.0.1)
>>>> LinkingTo: Rcpp, RcppThread
>>>> Suggests: knitr, rmarkdown
>>>> VignetteBuilder: knitr
>>>>
>>>> Could it be these errors (disk full, no formatR) are related? If not,
>>>> does formatR need to be listed as a dependency?
>>>>
>>>> If the former (R server config/resource build errors), do I need to
>>>> resubmit the package?
>>>>
>>>> Thank you.
>>>>
>>>> J Park
>>>>
>>>>
>>>> [[alternative HTML version deleted]]
>>>>
>>>> ______________________________________________
>>>> R-package-devel using r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Joseph Park <http://jpark.us/>, PhD, PE
U.S. Department of Interior <https://www.doi.gov/>, SFNRC
<https://www.nps.gov/ever/learn/scienceresearch.htm>
Software Literacy Foundation <http://softwareliteracyfoundation.org/>
UCSD Sugihara Lab <https://deepeco.ucsd.edu/>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list