DesiQuintans / tsv2label

tsv2label: Label, describe, rename, and recode datasets using a data dictionary
Other
2 stars 0 forks source link

The whole package fails if the dataframe is not in the global environment :/ #14

Closed DesiQuintans closed 11 months ago

DesiQuintans commented 11 months ago

This is because the .Globalenv is hard-coded in.

global_eval <- function(code_chr) {
    eval(parse(text = code_chr), envir = .GlobalEnv)
}

I probably want parent.env(environment()) instead.