root.dir <- here::here()
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  root.dir = root.dir
  # fig.height = 12,
  # fig.width = 10
)  
knitr::opts_knit$set(root.dir = root.dir, dpi = 300)   

Section 1

Section 1.1

print("Code goes here")
#> [1] "Code goes here"

Section 2

Section 2.1

message("More code goes here")
#> More code goes here

Session info

utils::sessionInfo()
#> R version 4.0.4 (2021-02-15)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur 10.16
#> 
#> Matrix products: default
#> BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
#> 
#> locale:
#> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> loaded via a namespace (and not attached):
#>  [1] here_1.0.1        rprojroot_2.0.2   digest_0.6.27     R6_2.5.0         
#>  [5] jsonlite_1.7.2    magrittr_2.0.1    evaluate_0.14     rlang_0.4.10     
#>  [9] stringi_1.5.3     jquerylib_0.1.3   bslib_0.2.4       rmarkdown_2.7    
#> [13] tools_4.0.4       stringr_1.4.0     xfun_0.22         yaml_2.2.1       
#> [17] compiler_4.0.4    htmltools_0.5.1.1 knitr_1.31        sass_0.3.1