move ddl folder to inst so it is accessible from tests
This commit is contained in:
parent
de1c577b6b
commit
d17a4c3e2e
|
@ -25,10 +25,10 @@
|
||||||
#' Defaults to all supported dialects.
|
#' Defaults to all supported dialects.
|
||||||
#' @param outputfolder The base folder where the SQL files will be written.
|
#' @param outputfolder The base folder where the SQL files will be written.
|
||||||
#' Subfolders will be created for each cdmVersion and targetDialect.
|
#' Subfolders will be created for each cdmVersion and targetDialect.
|
||||||
#'
|
#' @export
|
||||||
buildRelease <- function(cdmVersions = listSupportedVersions(),
|
buildRelease <- function(cdmVersions = listSupportedVersions(),
|
||||||
targetDialects = listSupportedDialects(),
|
targetDialects = listSupportedDialects(),
|
||||||
outputfolder = file.path(getwd(), "ddl")){
|
outputfolder = file.path(getwd(), "inst", "ddl")){
|
||||||
basefolder <- outputfolder
|
basefolder <- outputfolder
|
||||||
for (cdmVersion in cdmVersions) {
|
for (cdmVersion in cdmVersions) {
|
||||||
for (targetDialect in targetDialects) {
|
for (targetDialect in targetDialects) {
|
||||||
|
@ -73,7 +73,7 @@ buildRelease <- function(cdmVersions = listSupportedVersions(),
|
||||||
#'
|
#'
|
||||||
buildReleaseZip <- function(cdmVersion,
|
buildReleaseZip <- function(cdmVersion,
|
||||||
targetDialect = listSupportedDialects(),
|
targetDialect = listSupportedDialects(),
|
||||||
outputfolder = file.path(getwd(), "ddl")){
|
outputfolder = file.path(getwd(), "inst", "ddl")){
|
||||||
# argument checks
|
# argument checks
|
||||||
stopifnot(is.character(cdmVersion), length(cdmVersion) == 1, cdmVersion %in% listSupportedVersions())
|
stopifnot(is.character(cdmVersion), length(cdmVersion) == 1, cdmVersion %in% listSupportedVersions())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue