If we want to search for the end of the line to, for example, add two spaces (and thus create a linebreak), we can:
find `(.)$ with Regex selected
and replace with \1your_string
10.2 Print the session info:
This prints our session info (used R version, packages, etc) and is very important to store to reproduce our code for others
#|eval: falsesessionInfo()
R version 4.4.2 (2024-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
locale:
[1] LC_COLLATE=English_Netherlands.utf8 LC_CTYPE=English_Netherlands.utf8
[3] LC_MONETARY=English_Netherlands.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Netherlands.utf8
time zone: Europe/Amsterdam
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmlwidgets_1.6.4 compiler_4.4.2 fastmap_1.2.0 cli_3.6.5
[5] tools_4.4.2 htmltools_0.5.8.1 rmarkdown_2.29 knitr_1.50
[9] jsonlite_1.9.0 xfun_0.52 digest_0.6.37 rlang_1.1.6
[13] evaluate_1.0.3
10.2.1 Clean-up the working environment
Notice: At the moment, we do not want to clean up the working directory, therefore, in our documentation we put a # in front of it. If you want to run the code just remove the #