ksource: Sourcing a Rmarkdown document

View source: R/setting_environment.R

ksourceR Documentation

Sourcing a Rmarkdown document

Description

Function extracted from : https://stackoverflow.com/questions/10966109/how-to-source-r-markdown-file-like-sourcemyfile-r Sources an Rmd file by creating a temporary R file. Aim : source Rmd files as .R files (not possible at this moment)

Usage

ksource(x, ...)

Arguments

x

path to the Rmd file

Details

Example use (not run) : ksource("vignettes/prepare_and_run_GDM.Rmd")

Value

the output of the sourced file


allanecology/multiFunBetadivLuiGDM documentation built on Nov. 12, 2023, 6:16 a.m.