File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -244,15 +244,20 @@ parse_transform_serialize_r <- function(text,
244
244
transformers
245
245
)
246
246
247
- text_out <- pd_nested %> %
248
- split(pd_nested $ block ) %> %
249
- unname() %> %
250
- map2(find_blank_lines_to_next_block(pd_nested ),
251
- parse_transform_serialize_r_block ,
247
+ pd_split <- unname(split(pd_nested , pd_nested $ block ))
248
+ pd_blank <- find_blank_lines_to_next_block(pd_nested )
249
+
250
+ text_out <- vector(" list" , length(pd_split ))
251
+ for (i in seq_along(pd_split )) {
252
+ text_out [[i ]] <- parse_transform_serialize_r_block(
253
+ pd_split [[i ]],
254
+ pd_blank [[i ]],
252
255
transformers = transformers ,
253
256
base_indention = base_indention
254
- ) %> %
255
- unlist()
257
+ )
258
+ }
259
+
260
+ text_out <- unlist(text_out )
256
261
257
262
verify_roundtrip(
258
263
text , text_out ,
You can’t perform that action at this time.
0 commit comments