Last active
July 13, 2017 00:44
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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