Hello,
I cannot explain the following behaviour.
I created a #!/usr/bin/Rscript which
- defines a list p
- calls rmarkdown::render(my file.R, param = list(config = p$config, env = new.env())
In my file.R I define a list also called p. I actually define it as global with p<<- stuff
When I launch the script I am being told p is not known.
When I change p to say opt in the Rscript calling script everything works.
I thought asking render to define a new env would make sure the 2 p would not clash, do I miss something ?
PS: sorry I can not produce a reprex right now, I hope this is trivial enough so it can be answered as is.