r - Non-standard evaluation inside of a function -


i having problems non-standard evaluation using eval. code looks this:

outer_fun <- function(input_1, input_2) { #some computations } <- function(input_1, input_2, name = "outer"){ eval(parse(text = paste0(name, '_fun(input_1, input_2)')),                     envir = environment(something)) } 

and while executing receive object 'input_1' not found. can me envir setting? have tried parent.env() , parent.frame() , did not help.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -