Skip to content

Commit 7fcc3e9

Browse files
authored
Merge branch 'main' into delete
2 parents 0e6429c + 8c6f01c commit 7fcc3e9

8 files changed

Lines changed: 181 additions & 167 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Imports:
3535
rlang (>= 1.1.0),
3636
rprojroot,
3737
waldo,
38-
yaml
38+
yaml12
3939
Suggests:
4040
crul (>= 1.6.0),
4141
desc,
@@ -61,3 +61,4 @@ X-schema.org-applicationCategory: Web
6161
X-schema.org-isPartOf: https://ropensci.org
6262
X-schema.org-keywords: http, https, API, web-services, curl, mock,
6363
mocking, http-mocking, testing, testing-tools, tdd
64+
Config/roxygen2/version: 8.0.0

R/serializer.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Serializer <- R6::R6Class(
2525
) {
2626
self$file_extension <- ext
2727
self$path <- paste0(path, "/", name, self$file_extension)
28-
self$preserve_bytes = preserve_bytes
28+
self$preserve_bytes <- preserve_bytes
2929
self$matchers <- matchers
3030
},
3131
serialize = function(data) NULL,
@@ -98,11 +98,11 @@ YAML <- R6::R6Class(
9898
preserve_bytes = self$preserve_bytes,
9999
matchers = self$matchers
100100
)
101-
yaml::write_yaml(out, self$path)
101+
yaml12::write_yaml(out, self$path)
102102
},
103103

104104
deserialize = function() {
105-
input <- yaml::read_yaml(self$path)
105+
input <- yaml12::read_yaml(self$path)
106106
decode_interactions(input, self$preserve_bytes)
107107
}
108108
)

R/vcr-package.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ NULL
3333

3434
# https://r-pkgs.org/dependencies-in-practice.html#how-to-not-use-a-package-in-imports
3535
ignore_unused_imports <- function() {
36-
yaml::read_yaml
3736
R6::R6Class
3837
}

0 commit comments

Comments
 (0)