Create a function to call a wrapped node.js package
1 2 | node_fn_load(node_package, node_cmd = node_package, node_dir = "node",
r_package = NULL, return_list = TRUE, ...)
|
node_package |
the directory name of the node package |
the |
'bin' command of the node package. Defaults to the package name |
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. Defaults to the
parent.frame, assuming that |
return_list |
If |
... |
Additional parameters to pass to system2 if
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.