Skip to contents

Documentation

You can consult the documentation here

Overview

Whenever I created a file in Rmarkdown, there was a pattern of necessary packages and functions that I almost always used.
So this package provides a template for pdf reports in Rmarkdown and quite usual functions, note that it is a package more aggregator than creator.

Installation

devtools::install_github("https://github.com/AlissonRP/mypdf1")
remotes::install_github("https://github.com/AlissonRP/mypdf1")

Recommendation

To generate a pdf in Rmarkdown is recommended to use tinytex. If you don’t have, use:

tinytex::install_tinytex()

Use of default template

rmarkdown::draft("namefile.Rmd", template = "pdf1", package = "mypdf1")

Use of paper template

rmarkdown::draft("namefile.Rmd", template = "pdf1-paper", package = "mypdf1", create_dir = FALSE)

Functions available

  • pdf1_tbl: This function is used to generate tables
  • pdf1_freq_tbl: This function assists in creating frequency tables (tibble)
  • pdf1_cross_tbl: 2x2 table, values can be absolute or marginal rows using argument marg = TRUE
  • pdf1_summary: Summarize the data.frame outputting a tibble