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

rmarkdown support? #51

Closed
almartin82 opened this issue Jul 27, 2015 · 4 comments
Closed

rmarkdown support? #51

almartin82 opened this issue Jul 27, 2015 · 4 comments

Comments

@almartin82
Copy link

Hi Chris,

If this is too far afield, feel free to close, but am trying to figure out how to include rmarkdown as a dependency, so that I can rmarkdown::render().

Unfortunately rmarkdown requires pandoc as a dependency. Not sure how to install pandoc in my init.R. Would I need to fork the buildpack to include those binaries? There's a debian package on github. RStudio also hosts binaries.

Any pointers/ideas would be greatly appreciated. Happy to contribute back to the readme/vignette! Thanks!

@virtualstaticvoid
Copy link
Owner

Hi, yes it's possible, but would be easier with a custom build than trying to hack the buildpack. I created the heroku-buildpack-r-build for this purpose.

The pandoc debian package can be installed by adding it to the list of packages in the Aptfile of the build project. See heroku-buildpack-apt for more information on the Aptfile.

If this is something many people need, then I'll be happy to merge it in and rebuild the latest R versions.

In the meantime, I've build one for you with this package included. You can try it out by specifying the R version as 3.2.1 and Buildpack version as 20150727-1701 in the .r-version and .r-builpack-version files respectively (see example of how to specify versions here).

@almartin82
Copy link
Author

ahhhhhhh -- ok, this makes a lot of sense. thanks!

@mattvaldez
Copy link

I see this is closed, but I was hoping to get some support on this same issue rather than open a new one. I am using this buildpack version, and it is installing pandoc, however the version is 1.12.2.1, and when the application runs rmarkdown::render(), it errors out with:
Error: pandoc version 1.12.3 or higher is required and was not found.

I am uncertain on how to update pandoc, any suggestions?

@virtualstaticvoid
Copy link
Owner

For anyone else finding this issue, the buildpack has been updated to include pandoc 1.15 now. (See #55)

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

3 participants