Skip to content

Commit

Permalink
Merge pull request #17 from agistaterre/fix/paths
Browse files Browse the repository at this point in the history
Fix/paths
  • Loading branch information
KetsiaGuichard committed May 26, 2024
2 parents 3083b7d + 901b448 commit 1be5cd3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 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
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
data-details: data-details.html
data-visualization: data-visualization.html
last_built: 2024-05-26T11:35Z
last_built: 2024-05-26T12:44Z
urls:
reference: https://ketsiaguichard.github.io/telraamStats/reference
article: https://ketsiaguichard.github.io/telraamStats/articles
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/import_sensor.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

0 comments on commit 1be5cd3

Please sign in to comment.