Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccess to rmakrdown output filename from knit_print #1390
Comments
|
As a hack I can do |
|
I don't think the information you need is exposed to users: https://github.com/rstudio/rmarkdown/blob/master/R/render.R I think it is fine to use |
Is is possible to get access to the output filename from
knit_print?I tried looking in
knitr::opts_*$get(), where*=chunk,hook,current,templateandknitt, but it's not available there. Similarly I even tried looking for it fromrmarkdown::metadatabut no go there too.I need it for my widgetframe package, for the rstudio/bookdown#271 issue. If I can determine the output filename, and it's libdir (which is normally
outputfile_files), then I can write the child widget in that directory, thus making the child widget files part of the parent widget's lib dir.