Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-baumann committed Sep 16, 2024
1 parent 2ffc9de commit 363c25a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/rix_init.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ rix_init <- function(project_path = ".",
cat(readLines(con = file(rprofile_file)), sep = "\n")
}

on.exit(close(file(rprofile_file)))
on.exit({
close(file(rprofile_file))
})
}

#' Get character vector of length two with comment and code write `.Rprofile`
Expand Down

0 comments on commit 363c25a

Please sign in to comment.