Skip to content

Commit

Permalink
remove repeated parsing for testing purposes r-lib#187
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Aug 24, 2018
1 parent a82fe3a commit 80823c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tokenize <- function(text) {
#' @keywords internal
get_parse_data <- function(text, include_text = TRUE, ...) {
# avoid https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16041
parse_safely(text, keep.source = TRUE)
#parse_safely(text, keep.source = TRUE)
parsed <- parse_safely(text, keep.source = TRUE)
as_tibble(utils::getParseData(parsed, includeText = include_text)) %>%
add_id_and_short()
Expand Down

0 comments on commit 80823c6

Please sign in to comment.