Created
April 3, 2019 14:56
-
-
Save romainfrancois/ecd799ad8383f1546b37afb981cd0e84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(interactive()) { | |
.__Rprofile_env__. <- new.env(parent = emptyenv()) | |
.__Rprofile_env__.[["install"]] <- pak::pkg_install | |
attach(.__Rprofile_env__.) | |
library(usethis, warn.conflicts = FALSE) | |
library(conflicted) | |
conflict_prefer("filter", "dplyr") | |
conflict_prefer("sql", "dbplyr") | |
library(usethis) | |
library(reprex) | |
library(prompt) | |
set_prompt(function(...){ | |
paste0( | |
"[", git_branch(), git_dirty(), git_arrows(), "] ", | |
prompt_memuse() | |
) | |
}) | |
options( | |
warnPartialMatchAttr = TRUE, | |
warnPartialMatchDollar = TRUE, | |
warnPartialMatchArgs = TRUE, | |
error = rlang::entrace, | |
keep.source = TRUE, | |
keep.source.pkgs = TRUE | |
) | |
utils::rc.settings(ipck = TRUE) | |
options("devtools.desc" = list( | |
Author = "Romain François", | |
License = "MIT + file LICENSE", | |
Version = "0.0.0.9000" | |
)) | |
options("devtools.name" = "Romain François") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this. On windows, I get this error..how to overcome this ?