R/utils.R

Defines functions bolagsanalyser_file inc

#' Generate a section for the yaml input
#'
#' @param input a file containing markdown text
#' @param sep a separator for each line.
#'
#' @return a string
#'
#' @export
inc <- function(input, sep = "\n\n  ") {
  paste(readLines(input), collapse = sep)
}

bolagsanalyser_file <- function(...) {
  system.file(..., package = "bolagsanalyser", mustWork = TRUE)
}
JakobJohannesson/bolagsanalyser documentation built on March 14, 2021, 2:51 p.m.