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()))
})
Azure/AzureVM documentation built on Feb. 9, 2023, 3:30 p.m.