Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in build_site() #1158

Closed
nschiett opened this issue Oct 4, 2019 · 6 comments
Closed

Error in build_site() #1158

nschiett opened this issue Oct 4, 2019 · 6 comments

Comments

@nschiett
Copy link

nschiett commented Oct 4, 2019

When I try to run build_site() for this R package: https://github.com/nschiett/fishualize
I get the following error:

Error in pkgdown::build_site(...) :
unused arguments (install = FALSE, devel = FALSE)
Error: callr subprocess failed: unused arguments (install = FALSE, devel = FALSE)

When I set devel = TRUE it does work, but then I have the issue that the readme files are not written in docs/index_files/figure-html, which was the case before. As a result, the figures are not displayed in the main page.
image
Any thoughts on what might be going on here?

@ldecicco-USGS
Copy link

I just started errors with "Error: callr subprocess failed:" as well. My googling makes me think it's a update to pandoc issue?

For me, I have an image in a vignette that I call like this:

![ExampleTable](table1.png)

This has always worked in the past (and table1.png is right in the vignettes folder). I've tried a few alternatives of:

<img src="table1.png" align="center" />

and so far, all give:

Error: callr subprocess failed: pandoc document conversion failed with error 99

If I take out that image, everything works fine(...but I kind of want to leave it!)

@hadley
Copy link
Member

hadley commented Oct 4, 2019

I think these are likely to be two different issues — you can make them easier to debug by running pkgdown::build_site(new_process = FALSE) so you can get a traceback in the current process.

@nschiett
Copy link
Author

nschiett commented Oct 6, 2019

Thanks for the reply! It's working again now.

@nschiett nschiett closed this as completed Oct 6, 2019
@daroczig
Copy link

daroczig commented Oct 7, 2019

@nschiett @ldecicco-USGS did you figure out what's causing the Error: callr subprocess failed: pandoc document conversion failed with error 99 error? My build_site (actually deploy_site_github) worked fine on Travis but started to fail recently, see eg https://travis-ci.org/daroczig/logger/builds/594661593 (most recent success on the same branch unfortunately run only a month ago at https://travis-ci.org/daroczig/logger/builds/580577668 -- although now that failed as well after a restart)

I suspect this is also related to an image at https://github.com/daroczig/logger/blob/master/vignettes/anatomy.Rmd#L18

But I have not changed any vignettes recently, so not sure what's causing the issue. I tried reverting pkgdown to 1.3, but same error happens. The version of pandoc and all the other dependencies seems to be the same, I'm really not sure what's going on.

@ldecicco-USGS
Copy link

Yup, that's what's been going on with all my pkgdown sites recently. I've had to switch all the calls to images from either the raw img call (like you have), or the markdown call to:

https://github.com/USGS-R/EGRET/blob/master/vignettes/EGRET.Rmd#L1306

You can add some style I found like this:
https://github.com/USGS-R/toxEval/blob/master/vignettes/shinyApp.Rmd#L60

```{r sideImage, echo=FALSE, fig.align='right', out.extra='style="float:right; padding:10px"'}
knitr::include_graphics("sidebar.png")
```

@daroczig
Copy link

daroczig commented Oct 7, 2019

@ldecicco-USGS thank you very much, knitr::include_graphics indeed fixed the issue -- you helped me a lot 🙇‍♂️

mrustl added a commit to KWB-R/kwb.pkgbuild that referenced this issue Oct 21, 2019
mrustl added a commit to KWB-R/kwb.pkgbuild that referenced this issue Oct 21, 2019
to fix issue with deploying Rmd with link to graphics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants