> Error(s) in re-building vignettes:
>...
> --- re-building ‘lvpp.Rmd’ using rmarkdown
> Quitting from lines 11-15 (lvpp.Rmd)
> Error: processing vignette 'lvpp.Rmd' failed with diagnostics:
> The function xfun::isFALSE() will be deprecated in the future. Please
>consider using base::isFALSE(x) or identical(x, FALSE) instead.
> --- failed re-building ‘lvpp.Rmd’
The error message means a function (knitr::opts_chunk$set) called
xfun::isFALSE() in lines 11-15 (lvpp.Rmd).
However, knitr::opts_chunk$set stopped using xfun::isFALSE().
See the commit shown below.
https://github.com/yihui/knitr/commit/ccb07c4c226f7375e5df242103672bd629ac
Updating knitr package should fix the error.
I tested your package on my Ubuntu machine and
got no error even after removing vignettes from .Rbuildignore.
I believe the cause of the error is not your package but your environment.
Best,
Shota Ochi
2023年4月2日(日) 6:44 Duncan Murdoch :
> The error message seems pretty clear: "The function xfun::isFALSE()
> will be deprecated in the future. Please consider using base::isFALSE(x)
> or identical(x, FALSE) instead".
>
> So don't use xfun::isFALSE().
>
> Duncan Murdoch
>
>
>
> On 31/03/2023 5:01 p.m., Deepankar Basu wrote:
> > Hello All,
> >
> > I am in the process of developing an R package (
> > https://github.com/dbasu-umass/clptheory) and have encountered problems
> > with the vignette.
> >
> > I had initially been able to build the vignette but *after *I added a new
> > function to my package, I have been getting the error message that
> > "Vignette rebuilding failed" when I use devtools:check().
> >
> > If I use devtools:check(vignette=FALSE), there are no error messages. I
> can
> > also compile the vignette with knitr.
> >
> > Below is the output from devtools:check(vignette=FALSE)
> >> devtools::check(vignettes = FALSE)
> > ══ Documenting
> >
> ═
> > ℹ Updating clptheory documentation
> > ℹ Loading clptheory
> >
> > ══ Building
> >
>
> > Setting env vars:
> > • CFLAGS: -Wall -pedantic -fdiagnostics-color=always
> > • CXXFLAGS : -Wall -pedantic -fdiagnostics-color=always
> > • CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
> > • CXX14FLAGS: -Wall -pedantic -fdiagnostics-color=always
> > • CXX17FLAGS: -Wall -pedantic -fdiagnostics-color=always
> > • CXX20FLAGS: -Wall -pedantic -fdiagnostics-color=always
> > ── R CMD build
> >
> ─
> > ✔ checking for file ‘/home/basu15/MyRProjects/clptheory/DESCRIPTION’ ...
> > ─ preparing ‘clptheory’:
> > ✔ checking DESCRIPTION meta-information ...
> > ─ checking for LF line-endings in source and make files and shell
> scripts
> > ─ checking for empty or unneeded directories
> > ─ building ‘clptheory_0.0.0.9000.tar.gz’
> >
> > ══ Checking
> >
>
> > Setting env vars:
> > • _R_CHECK_CRAN_INCOMING_USE_ASPELL_ : TRUE
> > • _R_CHECK_CRAN_INCOMING_REMOTE_ : FALSE
> > • _R_CHECK_CRAN_INCOMING_ : FALSE
> > • _R_CHECK_FORCE_SUGGESTS_ : FALSE
> > • _R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_: FALSE
> > • NOT_CRAN : true
> > ── R CMD check
> >
> ─
> > ─ using log directory
> ‘/tmp/RtmpCSbZbZ/file3f721a56f9d0/clptheory.Rcheck’
> > ─ using R version 4.2.3 (2023-03-15)
> > ─ using platform: x86_64-pc-linux-gnu (64-bit)
> > ─ using session charset: UTF-8
> > ─ using options ‘--no-manual --ignore-vignettes --as-cran’
> > ✔ checking for file ‘clptheory/DESCRIPTION’
> > ─ this is package ‘clptheory’ version ‘0.0.0.9000’
> > ─ package encoding: UTF-8
> > ✔ checking package namespace information
> > ✔ checking package dependencies (2.5s)
> > ✔ checking if this is a source package ...
> > ✔ checking if there is a namespace
> > ✔ checking for executable files ...
> > ✔ checking for hidden files and directories ...
> > ✔ checking for portable file names
> > ✔ checking for sufficient/correct file permissions
> > ✔ checking serialization versions ...
> > ✔ checking whether package ‘clptheo