kgoldfeld / simstudy

simstudy: Illuminating research methods through data generation
https://kgoldfeld.github.io/simstudy/
GNU General Public License v3.0
80 stars 7 forks source link

double dot notation not working properly in genSurv #202

Closed kgoldfeld closed 1 year ago

kgoldfeld commented 1 year ago

When genSurv is called in a function using a data definition that has a double-dot reference, the request fails. The issue, I believe, is that the environment is not properly set. For example, a current call is

shape <- as.vector(.evalWith(formshape, .parseDotVars(formshape), dtSurv))

but may need to be

shape <- as.vector(.evalWith(formshape, .parseDotVars(formshape, envir), dtSurv))

where envir has been set in genSurv

assignUser commented 1 year ago

203