Open nbenn opened 3 years ago
Is this happening only with pkgdown or can you make a reproducible example with rmarkdown and rticles only with an Rmd file built using rmarkdown::render()
?
If so, that would be easier for me to understand and see the underlying issue.
Thanks.
I'm sorry, but I don't see how to make the above reproducible example more reproducible. I do say that devtools::build_vignettes()
succeeds where pkgdown::build_articles()
fails, so the problem is not with rmarkdown::render()
(which can be verified with the above example) but is somehow an interaction between pkgdown::build_articles()
and specifics of this type of vignette. If you feel that this is more an issue with pkdgown than with rticles, I apologize and you can go ahead and close again.
Thanks for you precision. I missed the fact that this works fine with rmarkdown::render()
but fail with the package bundling usage. It feels like this may be an issue with how pkgdown is rendering the vignette.
With an issue like this one, it requires digging and making the reproducible example a minimal reproducible example which is always difficult. For now, this could be in one of the layer involved. (pkgdown, rmarkdown, rticles, the LaTeX template inside rticles, ...)
As this works with rmarkdown::render()
or devtools::build_vignettes()
and fails only with pkgdown, I would say the issue is there but I don't have a clue why.
As I said, this requires digging but it does not feel like a rticles issue directly. If we need to make some adaptation for pkgdown to work, then we'll happily do it.
If not already, it could be interesting to have this reported in pkgdown also to have more help from them to solve this.
I'll leave that open, but we'll need some help looking into this.
By filing an issue to this repo, I promise that
xfun::session_info('rticles')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles')
.I understand that my issue may be closed if I don't fulfill my promises.
When creating a package website using pkgdown for a package that contains a JSS vignette which has authors arranged using
\AND
, the following issue comes up:First a minimal package where everything works as expected:
If, however the
affiliation
containing the\AND
also contains an address, asThere is a fix for this: If an
affilliation2
is added in addition to the offendingaffiliation
, which does not contain the the\AND
, the problem goes away.