move ddl folder to inst so it is accessible from tests

This commit is contained in:
Adam Black 2021-08-20 12:05:15 -04:00
parent de1c577b6b
commit d17a4c3e2e
65 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@
#' Defaults to all supported dialects.
#' @param outputfolder The base folder where the SQL files will be written.
#' Subfolders will be created for each cdmVersion and targetDialect.
#'
#' @export
buildRelease <- function(cdmVersions = listSupportedVersions(),
targetDialects = listSupportedDialects(),
outputfolder = file.path(getwd(), "ddl")){
outputfolder = file.path(getwd(), "inst", "ddl")){
basefolder <- outputfolder
for (cdmVersion in cdmVersions) {
for (targetDialect in targetDialects) {
@ -73,7 +73,7 @@ buildRelease <- function(cdmVersions = listSupportedVersions(),
#'
buildReleaseZip <- function(cdmVersion,
targetDialect = listSupportedDialects(),
outputfolder = file.path(getwd(), "ddl")){
outputfolder = file.path(getwd(), "inst", "ddl")){
# argument checks
stopifnot(is.character(cdmVersion), length(cdmVersion) == 1, cdmVersion %in% listSupportedVersions())