[R-pkg-devel] Warning with R Build tools during CRAN check but not with local installation

2022-04-25 Thread James Martindale (Cefas) via R-package-devel
Good morning,

I am trying to release an `R` package to CRAN that contains some compiled C++ 
code and Stan models. Since adding a new Stan file to the package, I now get 
the following issue whenever I run `devtools::check_rhub()` or 
`devtools::check_win_devel()`:


* checking whether package 'EcoEnsemble' can be installed ... WARNING
Found the following significant warnings:
  WARNING: The tools required to build C++ code for R were not found.

This warning does *not* appear when I install the package locally and did not 
appear in the `r_hub`/`win_devel` checks in a previous version of the package 
that did not include this additional Stan file. There is nothing unusual about 
this Stan model that would lead it to cause issues like this.

Searching for this error suggests that this is an issue with the installation 
of RTools, but since this is not created in the local installation I am very 
confused. What could be the culprit here / how would I go about debugging this 
issue?

Many thanks,

James Martindale

This email and any attachments are intended for the name...{{dropped:15}}

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


Re: [R-pkg-devel] Two problems with fda

2022-04-25 Thread Ivan Krylov
On Mon, 25 Apr 2022 15:06:28 -0500
Spencer Graves  wrote:

> GitHub action reports, <<'"pdflatex"' not found>> with 
> vignettes.

No personal experience with GitHub Actions, but have you tried
following the advice by Gábor Csárdi from a few days ago?

https://stat.ethz.ch/pipermail/r-package-devel/2022q2/007970.html

You probably need to declare that your workflow needs tinytex installed
(as described at
),
but if you get different advice from more experienced people, follow
that first.

> (1.2) We don't  know what in the vignettes require pdflatex, so we
> cannot easily remove that.

This line sets the output format of the vignette to PDF:

https://github.com/JamesRamsay5/fda/blob/master/vignettes/monotoneFunctions.Rmd#L5

> "fRegress.Rd:325:22: Warning: nested emphasis "

This is a new check, which runs HTML Tidy on the HTML version of the
manual. If you install HTML Tidy on your local machine and a recent
enough version of R (R-4.2 is good enough, and so was R-devel for a few
weeks), you'll get the same check on your local machine, too.

> (2.1) We cannot find any "nested emphasis" to fix in this.
> (2.2) We don't know what the numbers "325:22" mean.

Row and column number in the HTML file, I beleive. Use R CMD Rdconv to
produce an HTML file from man/fRegress.Rd, or use help(fRegress, help =
'html') to see it. If I check the HTML documentation on my machine, my
HTML file ends up slightly different, and the error is found on line
313 instead:

The fRegress fit object
case:

A code tag is apparently not allowed inside another code tag. I guess
this means that \code{} is not allowed inside \item{} any more, since
the original source line for that is:

\item{The \code{fRegress} fit object case:}

-- 
Best regards,
Ivan

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