File tree 4 files changed +14
-16
lines changed
4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -53,19 +53,3 @@ config_path <- function(pkg) {
53
53
}
54
54
cli :: style_hyperlink(fs :: path_file(config ), paste0(" file://" , config ))
55
55
}
56
-
57
- # print helper ------------------------------------------------------------
58
-
59
- print_yaml <- function (x ) {
60
- structure(x , class = " print_yaml" )
61
- }
62
- # ' @export
63
- print.print_yaml <- function (x , ... ) {
64
- cat(yaml :: as.yaml(x ), " \n " , sep = " " )
65
- }
66
-
67
- # IO ----------------------------------------------------------------------
68
-
69
- write_yaml <- function (x , path ) {
70
- write_lines(yaml :: as.yaml(x ), path = path )
71
- }
Original file line number Diff line number Diff line change @@ -181,6 +181,20 @@ section_id <- function(section) {
181
181
xml2 :: xml_attr(h , " id" )
182
182
}
183
183
184
+ # yaml ------------------------------------------------------------
185
+
186
+ print_yaml <- function (x ) {
187
+ structure(x , class = " print_yaml" )
188
+ }
189
+ # ' @export
190
+ print.print_yaml <- function (x , ... ) {
191
+ cat(yaml :: as.yaml(x ), " \n " , sep = " " )
192
+ }
193
+
194
+ write_yaml <- function (x , path ) {
195
+ write_lines(yaml :: as.yaml(x ), path = path )
196
+ }
197
+
184
198
# Helpers for testing -----------------------------------------------------
185
199
186
200
xpath_xml <- function (x , xpath ) {
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments