Skip to content

Commit

Permalink
remove trimws
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Nov 8, 2024
1 parent 0669e3e commit 98d6194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/teal_data-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ code2list <- function(code) {
if (length(parsed_code)) {
lapply(split_code(code), function(current_code) {
attr(current_code, "id") <- sample.int(.Machine$integer.max, 1)
parsed_code <- parse(text = trimws(current_code), keep.source = TRUE)
parsed_code <- parse(text = current_code, keep.source = TRUE)
attr(current_code, "dependency") <- extract_dependency(parsed_code)
current_code
})
Expand Down

0 comments on commit 98d6194

Please sign in to comment.