search for: r_printf_format

Displaying 2 results from an estimated 2 matches for "r_printf_format".

2024 Jul 15
1
Minor inconsistencies in tools:::funAPI()
...tespace or stars (?: \w+ (?:\s+ | \*)+)+ ) # function name, assumes no extra whitespace ( \w+\(\w+\) # macro call | \(\w+\) # in parentheses | \w+ # a plain name ) # arguments: non-greedy match inside parentheses \s* \( (.*?) \) \s* # using dotall here # will include R_PRINTF_FORMAT(1,2 but we don't care # finally terminated by semicolon ; }" regmatches(lines, gregexec(rx, lines, perl = TRUE))[[1]][3,] } # Preprocess then extract remapped function names like getFunsHdr getdecl2 <- function(file) file |> readLines() |> grep('^\\s*#\\s*error'...
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
...t; | \(\w+\) # in parentheses > | \w+ # a plain name > ) > # arguments: non-greedy match inside parentheses > \s* \( (.*?) \) \s* # using dotall here > # will include R_PRINTF_FORMAT(1,2 but we don't care > # finally terminated by semicolon > ; > }" > > regmatches(lines, gregexec(rx, lines, perl = TRUE))[[1]][3,] > } > > # Preprocess then extract remapped function names like getFunsHdr > getdecl...