Closed pasahe closed 1 year ago
scoping in R has pitfalls and maybe the publish function can be improved. but, since you did not provide a reproducible example, just the error message, I cannot help. please send me an email with an R-markdown file that produces the error.
Hello,
Knitting my rmarkdown document with the function publish on a cox model gives an error that when compiling locally the code doesn't appear. The error is the following:
So it seems it doesn't found the data previously used to estimate the cox model, that is 'dat1'. I had to assign my data to the global environment using 'dat1 <<- dat1' to make it work. It's seems like a bug but maybe it's some kind of weird interaction of my RStudio version with the function.
Thank you,
Pau