https://github.com/alissonrp/fastrep
Time-saving package for creating reports in R
https://github.com/alissonrp/fastrep
latex pdf r rmarkdown
Last synced: 8 months ago
JSON representation
Time-saving package for creating reports in R
- Host: GitHub
- URL: https://github.com/alissonrp/fastrep
- Owner: AlissonRP
- Created: 2021-10-27T18:24:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-20T21:27:13.000Z (almost 4 years ago)
- Last Synced: 2025-10-22T05:50:34.252Z (8 months ago)
- Topics: latex, pdf, r, rmarkdown
- Language: R
- Homepage: https://cran.r-project.org/web/packages/fastrep/vignettes/my-vignette.html
- Size: 1.53 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastrep 
[](https://github.com/AlissonRP/fastrep/actions)
[](https://app.codecov.io/gh/AlissonRP/fastrep?branch=main)
# Documentation
You can consult the documentation [here](https://cran.r-project.org/web/packages/fastrep/vignettes/my-vignette.html)
## 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
```r
install.packages("fastrep")
```
```r
devtools::install_github("https://github.com/AlissonRP/fastrep")
```
### Recommendation
To generate a pdf in Rmarkdown is recommended to use [`tinytex`](https://cran.r-project.org/package=tinytex). If you don't have, use:
```r
tinytex::install_tinytex()
```
## Use of default template
```r
rmarkdown::draft("namefile.Rmd", template = "fast_report", package = "fastrep")
```
## Use of paper template
```r
rmarkdown::draft("namefile.Rmd", template = "fast_paper", package = "fastrep", create_dir = FALSE)
```
## Functions available
* `tbl`: This function is used to generate tables
* `freq_tbl`: This function assists in creating frequency tables (`tibble`)
* `cross_tbl`: 2x2 table, values can be absolute or marginal rows using argument `marg = TRUE`
* `describe`: Summarize the `data.frame` outputting a `tibble`