Skip to content

Commit

Permalink
read_PSL2R():
Browse files Browse the repository at this point in the history
+ up message during import
  • Loading branch information
RLumSK committed Jul 22, 2024
1 parent 5dbc219 commit a3a3fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Empty file.
5 changes: 3 additions & 2 deletions R/read_PSL2R.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' @author Christoph Burow, University of Cologne (Germany),
#' Sebastian Kreutzer, Institut of Geography, Heidelberg University (Germany)
#'
#' @section Function version: 0.1.0
#' @section Function version: 0.1.1
#'
#' @note
#' Because this function relies heavily on regular expressions to parse
Expand All @@ -66,7 +66,7 @@ read_PSL2R <- function(file, drop_bg = FALSE, as_decay_curve = TRUE, smooth = FA
if (length(file) == 1) {
if (!grepl(".psl$", file, ignore.case = TRUE)) {
file <- list.files(file, pattern = ".psl$", full.names = TRUE, ignore.case = TRUE)
message("The following files were found and imported: \n", paste(file, collapse = "\n"))
message("[read_PSL2R(): The following files were found and imported: \n", paste(" ..", file, collapse = "\n"))
}
}
if (!all(file.exists(file)))
Expand Down Expand Up @@ -333,3 +333,4 @@ format_Header <- function(x) {

return(header)
}

0 comments on commit a3a3fc4

Please sign in to comment.