setting environment variables programmatically
You can use do.call
to call the function with that named argument:
args = list(var.value)
names(args) = var.name
do.call(Sys.setenv, args)
Try this:
.Internal(Sys.setenv(var.name, var.value))
You can use do.call
to call the function with that named argument:
args = list(var.value)
names(args) = var.name
do.call(Sys.setenv, args)
Try this:
.Internal(Sys.setenv(var.name, var.value))