Skip to contents

[Experimental] Generates an RMarkdown report for the given REDCap database (project object). This function creates an RMarkdown file in the specified directory or default directory, allowing users to create custom reports based on the database content.

Usage

rmarkdown_project(project, dir_other)

Arguments

project

A validated project object containing REDCap project data and settings. Generated using load_project or setup_project

dir_other

Character string specifying the directory where the RMarkdown report will be saved. If not provided, it defaults to the output directory inside the project's main directory.

Value

A message indicating the creation of the RMarkdown report and the path to the generated file.

Details

This function checks if a directory is specified, and if not, defaults to the output folder within the project's directory. It generates the RMarkdown file that can then be used for further processing or rendering into HTML, PDF, or other formats.

See also

save_project for saving the project object.

Other db_functions: sync_project()