Looks like there are some environment issue with dataInput() when data_edit() is called inside another function. For example, no data is displayed with the following:
data_test <- function(){
data <- mtcars
data_edit(data)
}
I suspect this is because dataInput is searching for data in the wrong environment. I will need to set the search environment to the parent.frame() of data_edit() in order for this to work.
Above mentioned changes have been implemented in DataEditR v0.1.1, in addition to preventing loading of highlighted objects in RStudio when data ahs been supplied directly to data_edit().
Looks like there are some environment issue with
dataInput()
whendata_edit()
is called inside another function. For example, no data is displayed with the following:I suspect this is because
dataInput
is searching for data in the wrong environment. I will need to set the search environment to theparent.frame()
ofdata_edit()
in order for this to work.