File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ identify_start_and_stop_of_royxgen_examples_from_text <- function(text) {
9
9
stops <- map_int(starts , match_stop_to_start ,
10
10
stop_candidates = stop_candidates
11
11
)
12
- NULL
12
+ map2( starts , stops , c )
13
13
}
14
14
15
15
identify_start_stop_of_royxgen_examples_from_paths <- function (path ) {
16
16
content <- enc :: read_lines_enc(path ) # ensure file can be read
17
17
identify_start_stop_of_royxgen_examples_from_text(content )
18
+
19
+ # some random output for now to make testing work.
18
20
list (
19
21
c(5 , 9 ),
20
22
c(18 , 39 )
@@ -45,7 +47,7 @@ style_roxygen_code_examples_one <- function(path) {
45
47
full_file_content , start_stop_sequences
46
48
)
47
49
48
- plain_examples <- map(start_stop_paris , remove_roxygen_mask ,
50
+ plain_examples <- map(start_stop_sequences , remove_roxygen_mask ,
49
51
text = masked_examples
50
52
)
51
53
styled_examples <- map(plain_examples , style_text , ... )
You can’t perform that action at this time.
0 commit comments