This is the actual report. It can include figures, tables and other data suitable for a data science report.
# Add packages here that you use, but don't load via library. rlang::check_installed(c("base")) # dplyr can conflict with other packages, but the pipe is universally helpful. # We could start using the new R4.0 pipe |> library(magrittr) # Knitr options are helpful, such as turning off code blocks. knitr::opts_chunk$set( fig.width=7.5, fig.height=6, # This works for 1in margins, use 7.5/6 for 0.5 margins fig.path="Figures/", # Store the figures, handing for referring back to the report echo=FALSE, # Turn off code blocks warning=TRUE, # Turn off warnings and messages. Only do when you know what they are. message=TRUE, fig.align="left" # Left align figures to get most space. )
We can see a figure such as Figure \@ref(fig:plot-cars). Or a table such as Table \@ref(tab:cars-table).
plot(cars)
knitr::kable( summary(cars), caption="Numerical summary of the cars dataset using summary.", booktabs = TRUE ) %>% kableExtra::kable_styling()
\newpage
This section includes all of the code blocks from this report, in order to facilitate reproducible research and provide additional details on the report.
\newpage
The information in this section is included in the report to facilitate reproducible research. The specific environment under which the code was run is detailed.
dsreportr::print_session_information()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.