Takes a config list produced by `otp_make_config()` and saves it as json file for OTP
Arguments
- config
A named list made/modified from `otp_make_config()`
- dir
Path to folder where data for OTP is to be stored
- router
name of the router, default is "default", must be a subfolder of dir/graphs
See also
Other setup:
otp_build_graph()
,
otp_check_java()
,
otp_check_version()
,
otp_dl_demo()
,
otp_dl_jar()
,
otp_make_config()
,
otp_setup()
,
otp_stop()
,
otp_validate_config()
Examples
if (FALSE) {
conf <- otp_make_config("build")
otp_write_config(conf, dir = tempdir())
}