mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
functions to modify qmd for specific exports
This commit is contained in:
parent
ad99b5c46f
commit
d71d6169ff
17 changed files with 246 additions and 29 deletions
14
man/default_format_arguments.Rd
Normal file
14
man/default_format_arguments.Rd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/report.R
|
||||
\name{default_format_arguments}
|
||||
\alias{default_format_arguments}
|
||||
\title{Defaults qmd formats}
|
||||
\usage{
|
||||
default_format_arguments()
|
||||
}
|
||||
\value{
|
||||
list
|
||||
}
|
||||
\description{
|
||||
Defaults qmd formats
|
||||
}
|
||||
19
man/factorize.Rd
Normal file
19
man/factorize.Rd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/helpers.R
|
||||
\name{factorize}
|
||||
\alias{factorize}
|
||||
\title{Factorize variables in data.frame}
|
||||
\usage{
|
||||
factorize(data, vars)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{data.frame}
|
||||
|
||||
\item{vars}{variables to force factorize}
|
||||
}
|
||||
\value{
|
||||
data.frame
|
||||
}
|
||||
\description{
|
||||
Factorize variables in data.frame
|
||||
}
|
||||
19
man/format_writer.Rd
Normal file
19
man/format_writer.Rd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/report.R
|
||||
\name{format_writer}
|
||||
\alias{format_writer}
|
||||
\title{Merges list of named arguments for qmd header generation}
|
||||
\usage{
|
||||
format_writer(data, name)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{vector}
|
||||
|
||||
\item{name}{name}
|
||||
}
|
||||
\value{
|
||||
vector
|
||||
}
|
||||
\description{
|
||||
Merges list of named arguments for qmd header generation
|
||||
}
|
||||
21
man/index_embed.Rd
Normal file
21
man/index_embed.Rd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/report.R
|
||||
\name{index_embed}
|
||||
\alias{index_embed}
|
||||
\title{Split vector by an index and embed addition}
|
||||
\usage{
|
||||
index_embed(data, index, add = NULL)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{vector}
|
||||
|
||||
\item{index}{split index}
|
||||
|
||||
\item{add}{addition}
|
||||
}
|
||||
\value{
|
||||
vector
|
||||
}
|
||||
\description{
|
||||
Split vector by an index and embed addition
|
||||
}
|
||||
19
man/modify_qmd.Rd
Normal file
19
man/modify_qmd.Rd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/report.R
|
||||
\name{modify_qmd}
|
||||
\alias{modify_qmd}
|
||||
\title{Wrapper to modify quarto file to render specific formats}
|
||||
\usage{
|
||||
modify_qmd(file, format)
|
||||
}
|
||||
\arguments{
|
||||
\item{file}{filename}
|
||||
|
||||
\item{format}{desired output}
|
||||
}
|
||||
\value{
|
||||
none
|
||||
}
|
||||
\description{
|
||||
Wrapper to modify quarto file to render specific formats
|
||||
}
|
||||
19
man/specify_qmd_format.Rd
Normal file
19
man/specify_qmd_format.Rd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/report.R
|
||||
\name{specify_qmd_format}
|
||||
\alias{specify_qmd_format}
|
||||
\title{Specify format arguments to include in qmd header/frontmatter}
|
||||
\usage{
|
||||
specify_qmd_format(data, fileformat = c("docx", "odt", "pdf", "all"))
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{vector}
|
||||
|
||||
\item{fileformat}{format to include}
|
||||
}
|
||||
\value{
|
||||
vector
|
||||
}
|
||||
\description{
|
||||
Specify format arguments to include in qmd header/frontmatter
|
||||
}
|
||||
|
|
@ -4,18 +4,11 @@
|
|||
\alias{write_quarto}
|
||||
\title{Wrapper to save data in RDS, load into specified qmd and render}
|
||||
\usage{
|
||||
write_quarto(
|
||||
data,
|
||||
fileformat = c("html", "docx", "odt", "pdf", "all"),
|
||||
qmd.file = here::here("report.qmd"),
|
||||
...
|
||||
)
|
||||
write_quarto(data, qmd.file = here::here("report.qmd"), ...)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{list to pass to qmd}
|
||||
|
||||
\item{fileformat}{output format. Ignored if file!=NULL}
|
||||
|
||||
\item{qmd.file}{qmd file to render. Default is 'here::here("report.qmd")'}
|
||||
|
||||
\item{...}{Passed to \code{quarto::quarto_render()}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue