File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,14 @@ check_options_documentation = function(rd_file) {
3333 found = character (0 )
3434 walk_rd = function (rd_element ) {
3535 result = character (0 )
36- if (is.list(rd_element )) {
37- if (! is.null(attr(rd_element , " Rd_tag" )) && attr(rd_element , " Rd_tag" ) == " \\ code" && length(rd_element ) > = 1 ) {
38- content = rd_element [[1 ]]
39- if (is.character(content ) && startsWith(content , " datatable." )) {
40- result = content
41- }
36+ if (! is.list(rd_element )) return (character ())
37+ if (isTRUE(attr(rd_element , " Rd_tag" ) == " \\ code" ) && length(rd_element ) > = 1L ) {
38+ content = rd_element [[1L ]]
39+ if (is.character(content ) && startsWith(content , " datatable." )) {
40+ result = content
4241 }
43- result = c(result , unlist(lapply(rd_element , walk_rd )))
4442 }
45- result
43+ c( result , unlist(lapply( rd_element , walk_rd )))
4644 }
4745 found = walk_rd(tools :: parse_Rd(rd_file ))
4846 sort(unique(found ))
You can’t perform that action at this time.
0 commit comments