Installing additional system-level packages
Last updated
Last updated
The Shiny toolchain is based on Ubuntu 18.04 (bionic). You can install any apt
package present in .
First, create an Aptfile
in your repository. Each line of the file represents a package. You can add as many packages as you need, however, it is best practice to keep the image small.
Now, build your application as specified in . Texlive-base will now be installed.
This is a more common requirement for R applications. As rJava requires some additional configuration commands, we'll be using onbuild
rather than Aptfile which runs arbitrary commands.
Create a file named onbuild
which looks like this:
Install rJava to your project in R, and take a packrat snapshot.
You can always deploy immediately to Heroku which would build your application and produce the same results, but, testing locally first is always preferred.
Build your application as specified in . rJava will now be installed and enabled for your R appication.