R/load_tpls.R

lapply(dir("inst/tpl", pattern="\\.json$"), function(f)
{
    objname <- sub("\\.json$", "", f)
    obj <- jsonlite::fromJSON(file.path("inst/tpl", f), simplifyVector=FALSE)

    assign(objname, obj, parent.env(environment()))
})
Hong-Revo/AzureVM documentation built on Jan. 21, 2021, 2:02 p.m.