node_fn_load: Create a function to call a wrapped node.js package

Description Usage Arguments

View source: R/node.R

Description

Create a function to call a wrapped node.js package

Usage

1
2
node_fn_load(node_package, node_cmd = node_package, node_dir = "node",
  r_package = NULL, return_list = TRUE, ...)

Arguments

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 node_fn_load is being used in a package.

return_list

If TRUE, the new function will return a list of the return value, stdout, and stderr from the call to the node.js function. If FALSE, the new function will return the results of a system2 call.

...

Additional parameters to pass to system2 if return_list=TRUE


noamross/quickscraper documentation built on May 23, 2019, 9:30 p.m.