Re: [R-pkg-devel] CRAN Vignette pdfs garbled in Firefox pdf viewer

2023-02-10 Thread Shota Ochi
I reported the bug to bugzilla.

https://bugzilla.mozilla.org/show_bug.cgi?id=1816128

The bug is already fixed.
We should use higher version of firefox or firefox nightly.

2023年2月10日(金) 22:23 jing hua zhao :

> This is apparently  due to compression as needed fort package building,
> e.g., R CMD build --compact-vignettes=both --md5 --resave-data --log gap so
> mine has the same problem:
> https://cran.r-project.org/web/packages/gap/vignettes/jss.pdf
> 
> From: R-package-devel  on behalf
> of Mike Blazanin 
> Sent: 09 February 2023 15:27
> To: r-package-devel@r-project.org 
> Subject: [R-pkg-devel] CRAN Vignette pdfs garbled in Firefox pdf viewer
>
> Hi all, my package gcplyr has several vignettes which, from CRAN, appear
> garbled when opened with Firefox's pdf viewer (
> https://cran.r-project.org/web/packages/gcplyr/index.html). Specifically,
> instead of regular characters, there are numerous black-outlined white
> boxes with text inside like "EO 88" or "EO 55". This doesn't occur with the
> pdf vignettes on Github (https://github.com/mikeblazanin/gcplyr/). This
> also doesn't occur when CRAN pdfs are opened with Chrome's pdf viewer or
>
> opened with a local pdf viewer.
>
> The issue was documented here:
> https://github.com/mikeblazanin/gcplyr/issues/112
>
> Anyone have any suggestions for what could be causing this?
>
> Thanks!
> Mike Blazanin
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Vignette rebuilding failed

2023-04-01 Thread Shota Ochi
>  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