Skip to content

Commit

Permalink
fix spellchecks and style
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrassellyb committed Jan 4, 2024
1 parent 9ac2cfc commit 53e0a5e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 350 deletions.
4 changes: 2 additions & 2 deletions data-raw/create_adams_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ get_attr <- function(data, col_name) {
att <- attr(data[[col_name]], "label")
if (is.null(att)) {
att <- "undocumented field"
} else if ( att == "null" ) {
} else if (att == "null") {
att <- "undocumented field"
}
return(att)
Expand Down Expand Up @@ -87,7 +87,7 @@ run_template <- function(tp) {

if (is.null(exit_code)) {
dataset_dir <- tools::R_user_dir(sprintf("%s_templates_data", pkg), which = "cache")
rda_file <- gsub(".R", ".rda",tp_basename)
rda_file <- gsub(".R", ".rda", tp_basename)
rda_file <- gsub("ad_", "", rda_file)
data <- load_rda(file.path(dataset_dir, rda_file))

Expand Down
Loading

0 comments on commit 53e0a5e

Please sign in to comment.