Commit ab2c8cdf authored by Holger Brandl's avatar Holger Brandl

remove bash function from env interpolation

parent 8c4b8aec
......@@ -587,7 +587,7 @@ add_prefix = function(filename) {
## https://stackoverflow.com/questions/18669886/how-to-unfold-user-and-environment-variable-in-r-language/46240642#46240642
interp_from_env = function(path){
e <- new.env()
env = Sys.getenv()
env = Sys.getenv() %>% discard(~ str_detect(.x, fixed("()")))
paste0(make.names(names(env)), "='", gsub("'", '', env), "'") %>%
map(~eval(parse(text=.), envir=e))
# (system("export", intern=T) %>% str_split_fixed(" ", 2))[,2] %>% map(~eval(parse(text=.), envir=e))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment