Put this function in .onAttach to check and install node module dependencies. This is useful because some dependencies are binary and can not be hosted on CRAN.
1 2 | check_node_fn_deps(node_package, node_dir = "node", r_package = NULL,
ask = TRUE, verbose = FALSE)
|
node_package |
the directory name of the node package in the R package |
node_dir |
the directory where node packages are kept. Defaults to 'node', which should be a directory under 'inst' when creaing your own package. |
r_package |
the package name which wraps the function. Must be specified as the function can't automatically detect the package inside .onAttach |
ask |
Ask before installing dependencies? |
verbose |
Show verbose installation? If \textask=TRUE, user decides |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.