Skip to content

Commit 5e216ea

Browse files
committed
read_param_file typo
1 parent 6b9e2eb commit 5e216ea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- correction of `default_param_file()` when `cruncher_bin_directory` is defined.
66

7+
- correction of `read_param_file()` which where converting `full_series_name` parameter to `FALSE`.
8+
79
- if the default parameter file of the 'JWSACruncher' already exists, `default_param_file()` do not erase and delete it when `cruncher_bin_directory` is defined.
810

911
# rjwsacruncher 0.2.1

R/param_file.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ read_param_file <- function(file){
144144
list_config <- gsub("rsltnamelevel", "rslt_name_level", list_config)
145145
names(config) <- list_config
146146
if (!is.null(config$full_series_name)) {
147-
config$full_series_name <- config$full_series_name == '"true"'
147+
config$full_series_name <- config$full_series_name == 'true'
148148
}
149149
if (!is.null(config$short_column_headers)) {
150-
config$short_column_headers <- config$short_column_headers == '"true"'
150+
config$short_column_headers <- config$short_column_headers == 'true'
151151
}
152152
policy <- grep("policy", f, value = TRUE)
153153
if (length(policy) > 0) {

0 commit comments

Comments
 (0)