Skip to content

Commit

Permalink
normalize file paths. fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbutuseless committed Mar 13, 2024
1 parent 2637624 commit 8b057b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@


# yyjsonr 0.1.18.9003 2024-03-13

* call `normalizePath()` on all file paths

# yyjsonr 0.1.18.9002 2024-03-07

* Increase maximum number of allowed data.frame columns (during parsing) to 2048
Expand Down
6 changes: 3 additions & 3 deletions R/json.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ read_json_raw <- function(raw_vec, opts = list(), ...) {
read_json_file <- function(filename, opts = list(), ...) {
.Call(
parse_from_file_,
filename,
normalizePath(filename),
modify_list(opts, list(...))
)
}
Expand Down Expand Up @@ -143,7 +143,7 @@ write_json_file <- function(x, filename, opts = list(), ...) {
.Call(
serialize_to_file_,
x,
filename,
normalizePath(filename),
modify_list(opts, list(...))
)

Expand Down Expand Up @@ -173,7 +173,7 @@ validate_json_file <- function(filename, verbose = FALSE, opts = list(), ...) {

.Call(
validate_json_file_,
filename,
normalizePath(filename),
verbose,
opts
)
Expand Down

0 comments on commit 8b057b3

Please sign in to comment.