Skip to content

Commit

Permalink
Merge pull request #6 from ZorzArg/develop
Browse files Browse the repository at this point in the history
fix config labels to .RProj
  • Loading branch information
mdlavallee92 authored Sep 5, 2023
2 parents 1e534c4 + f28a4ec commit b480746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ addConfig <- function(block, database = block, projectPath = here::here(), open
check <- config_check()

if (check) {
projName <- basename(projectPath)
projFile <- list.files(projectPath, pattern = ".Rproj", full.names = TRUE)
projName <- basename(tools::file_path_sans_ext(here::here(projFile)))
cohortTable <- paste(projName, database, sep = "_")

config_block_txt <- glue::glue(
Expand Down
3 changes: 2 additions & 1 deletion R/makeFiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ makeNews <- function(projectPath = here::here(), open = TRUE) {
#' @export
makeConfig <- function(block, database = block, projectPath = here::here(), open = TRUE) {

projName <- basename(projectPath)
projFile <- list.files(projectPath, pattern = ".Rproj", full.names = TRUE)
projName <- basename(tools::file_path_sans_ext(here::here(projFile)))

data <- rlang::list2(
'Project' = projName,
Expand Down

0 comments on commit b480746

Please sign in to comment.