Skip to content

Commit

Permalink
back to dots for now
Browse files Browse the repository at this point in the history
ref #10
  • Loading branch information
wibeasley committed Sep 10, 2019
1 parent f739f68 commit 04406fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ documentation-peek.pdf
documentation-for-developers/
playgrounds/
sandbox/
testing/
utility/
^\.travis\.yml$
^appveyor\.yml$
Expand Down
8 changes: 4 additions & 4 deletions R/populate-config.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ populate_config <- function( path_in, project_name, path_out = path_in ) {

value <-
template %>%
gsub("\\{directory_output\\}", config$directory_output, .) %>%
gsub("\\{directory_file_server\\}", config$directory_file_server, .) %>%
gsub("\\{project_name\\}", project_name, .) %>%
gsub("\\{schema_name\\}", gsub("-", "_", project_name), .)
gsub(pattern = "\\{directory_output\\}" , replacement = config$directory_output , x = .) %>%
gsub(pattern = "\\{directory_file_server\\}", replacement = config$directory_file_server, x = .) %>%
gsub(pattern = "\\{project_name\\}" , replacement = project_name , x = .) %>%
gsub(pattern = "\\{schema_name\\}" , replacement = gsub("-", "_", project_name), x = .) #%>%

readr::write_file(value, path_out)
}
8 changes: 4 additions & 4 deletions sandbox/update-config-sandbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ config$directory_output
value <-
template %>%
# substr(1,2000) %>%
gsub("\\{directory_output\\}", config$directory_output, .) %>%
gsub("\\{directory_file_server\\}", config$directory_file_server, .) %>%
gsub("\\{project_name\\}", project_name, .) %>%
gsub("\\{schema_name\\}", gsub("-", "_", project_name), .) #%>%
gsub(pattern = "\\{directory_output\\}" , replacement = config$directory_output , x = rlang::.data) %>%
gsub(pattern = "\\{directory_file_server\\}", replacement = config$directory_file_server, x = rlang::.data) %>%
gsub(pattern = "\\{project_name\\}" , replacement = project_name , x = rlang::.data) %>%
gsub(pattern = "\\{schema_name\\}" , replacement = gsub("-", "_", project_name), x = rlang::.data) #%>%
# cat()

# %>%
Expand Down

0 comments on commit 04406fc

Please sign in to comment.