Skip to content

Commit

Permalink
testing single slash
Browse files Browse the repository at this point in the history
  • Loading branch information
rok-cesnovar committed Oct 17, 2020
1 parent 760e68c commit c7f99f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/read_csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ read_cmdstan_csv <- function(files,
all_draws <- 1
}
if (os_is_windows()) {
output_file_backslashes <- gsub("/", "\\\\", output_file)
output_file_backslashes <- gsub("/", "\\", output_file)
fread_cmd <- paste0("findstr /b /v '#' ", output_file_backslashes)
} else {
fread_cmd <- paste0("grep -v '^#' ", output_file)
Expand Down Expand Up @@ -387,7 +387,7 @@ read_csv_metadata <- function(csv_file) {
inv_metric_rows <- 0
parsing_done <- FALSE
if (os_is_windows()) {
csv_file_backslashes <- gsub("/", "\\\\", csv_file)
csv_file_backslashes <- gsub("/", "\\", csv_file)
fread_cmd <- paste0("findstr /b '[#a-zA-Z]' ", csv_file)
} else {
fread_cmd <- paste0("grep '^[#a-zA-Z]' ", csv_file)
Expand Down

0 comments on commit c7f99f0

Please sign in to comment.