Skip to content

Instantly share code, notes, and snippets.

@Torenable
Last active July 13, 2017 00:44
Show Gist options
  • Save Torenable/6bfcb702a336e344fdabc2e0b6e3e302 to your computer and use it in GitHub Desktop.
Save Torenable/6bfcb702a336e344fdabc2e0b6e3e302 to your computer and use it in GitHub Desktop.
Example of using a list as named parameters. Then can use JSON to pass parameters.
paras = jsonlite::read_json("/path/to/config.json")
do.call("func", paras) # analogue using dictionary as keywoard paramters `func(**paras)` in python
do.call(func, paras)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment