Skip to content

Commit 953fdd0

Browse files
authored
Merge pull request #663 from mrc-ide/wes/grepquotes
Use double-quoting when calling grep.exe on Windows
2 parents 5266f0f + e117e73 commit 953fdd0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: cmdstanr
22
Title: R Interface to 'CmdStan'
3-
Version: 0.5.2
3+
Version: 0.5.2.1
44
Date: 2022-04-24
55
Authors@R:
66
c(person(given = "Jonah", family = "Gabry", role = c("aut", "cre"),

R/csv.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ read_cmdstan_csv <- function(files,
236236
grep_path_quotes <- paste0('"', grep_path_repaired, '"')
237237
fread_cmd <- paste0(
238238
grep_path_quotes,
239-
" -v '^#' --color=never '",
239+
" -v \"^#\" --color=never \"",
240240
output_file,
241-
"'"
241+
"\""
242242
)
243243
} else {
244244
fread_cmd <- paste0("grep -v '^#' --color=never '", output_file, "'")
@@ -578,9 +578,9 @@ read_csv_metadata <- function(csv_file) {
578578
grep_path_quotes <- paste0('"', grep_path_repaired, '"')
579579
fread_cmd <- paste0(
580580
grep_path_quotes,
581-
" '^[#a-zA-Z]' --color=never '",
581+
" \"^[#a-zA-Z]\" --color=never \"",
582582
csv_file,
583-
"'"
583+
"\""
584584
)
585585
} else {
586586
fread_cmd <- paste0("grep '^[#a-zA-Z]' --color=never '", csv_file, "'")

0 commit comments

Comments
 (0)