Creates a new SQL script in the analysis/src/sql folder for storing parameterized OMOP queries. These files are rendered using SqlRender and executed against the CDM.
Usage
makeSrcSqlFile(
fileName,
author = NULL,
description = NULL,
projectPath = here::here(),
openFile = TRUE
)Arguments
- fileName
The name of the SQL file (e.g., "condition_occurrence_query")
- author
The name of the author. Defaults to template text if NULL
- description
A brief description of what this query does. Defaults to template text if NULL
- projectPath
The path to the project (defaults to current project)
- openFile
Whether to open the file after creating it (default TRUE)