Skip to content

Commit

Permalink
remove wrong paths and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
KetsiaGuichard committed May 26, 2024
1 parent 3083b7d commit 0631184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions R/create_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ get_config_path <- function(){
}
if(dir.exists(tmp_folder)){
tmp_file = paste(tmp_folder, config_name, sep = "")
if(file.exists(tmp_file)) {
return(tmp_file)
if(!file.exists(tmp_file)) {
create_config()
message("Creation of a default config file in the temp directory, please use create_config() to overwrite.")
tmp_file = paste(tmp_folder, config_name, sep = "")
}
} else {
create_config()
message("Creation of a default config file in the temp directory, please use create_config() to overwrite.")
tmp_file = paste(tmp_folder, config_name, sep = "")
return(tmp_file)
}
}
2 changes: 1 addition & 1 deletion R/data_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import_sensor <- function(list_sensor){
}

data <- map_dfr(list_sensor, ~ {
file <- paste0('folder_path', .x, '.RData')
file <- paste0(folder_path, .x, '.RData')
if (file.exists(file)) {
# we select the data that we don't consider null (arbitrary choice)
import <- load(file)
Expand Down

0 comments on commit 0631184

Please sign in to comment.