Skip to content

Commit 7e92180

Browse files
committed
refactor R code
1 parent d08625f commit 7e92180

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/makeExplicit.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ async function makeRFunctionCallExplicit() {
4545
{
4646
# Attempt to read the file, process it,
4747
# and write the updated content
48-
content <-
48+
formalistContent <-
4949
readLines('${formalistPath}', encoding = 'UTF-8', warn = FALSE) |>
5050
paste0(collapse = '\\n')
51-
updated_content <- pedant::add_double_colons(content)
52-
writeLines(enc2utf8(updated_content), con = '${formalistPath}')
51+
formalistContent <- pedant::add_double_colons(formalistContent)
52+
writeLines(enc2utf8(formalistContent), con = '${formalistPath}')
53+
rm(formalistContent)
5354
},
5455
error = function(e) {
5556
# If an error occurs during the formating process,

0 commit comments

Comments
 (0)