This function creates a complete example project structure for an R Markdown analysis
using the plnr
framework. It sets up a standardized directory structure and creates
example files demonstrating how to use plnr
for data analysis and report generation.
Details
The created project includes:
A main
run.R
script that initializes the project and demonstratesplnr
usageExample analysis functions in the
R
directoryA template R Markdown document
Standard project directories (results, paper, raw)
Examples
if (FALSE) { # \dontrun{
# Create a temporary directory for the example
temp_dir <- tempfile("plnr_example_")
create_rmarkdown(temp_dir)
# View the created structure
list.files(temp_dir, recursive = TRUE)
} # }