I would like to execute an R script file to a pdf or word and not have the figures, tables, output, etc. displayed, only the lines of written code.
I tried this:
rmarkdown::render('script.R')
But I need it without the output that is also generated. I am pretty new to R so I am not that familiar with all the options.