downloadCurrentDdl: Get current DDL sitting on the master branch

Description Usage Arguments Details Examples

View source: R/downloadCurrentDdl.R

Description

Get current DDL sitting on the master branch

Usage

1
2
3
4
downloadCurrentDdl(githubPath = "OHDSI/CommonDataModel",
  pathToCsv = "Sql%20Server/OMOP%20CDM%20sql%20server%20ddl.txt",
  outputFile = paste0("inst/sql/sql_server/OMOP CDM ddl ", Sys.Date(),
  ".sql"))

Arguments

githubPath

The path for the GitHub repo containing the package (e.g. 'OHDSI/CommonDataModel').

pathToCsv

The path for the snapshot inside the package.

outputFile

The path where the file should be saved.

Details

This function gets the current ddl on the CDM master branch. It will be taken from the Sql Server folder. The default location is inst/settings/currentOmopDdl.sql.

Examples

1
2
3
4
## Not run: 
downloadCurrentDdl("OHDSI/CommonDataModel", pathToCsv="Sql%20Server/OMOP%20CDM%20sql%20server%20ddl.txt")

## End(Not run)

OHDSI/DDLgeneratr documentation built on March 10, 2021, 1:44 a.m.