-
Notifications
You must be signed in to change notification settings - Fork 90
/
RProfile.R
32 lines (27 loc) · 1.19 KB
/
RProfile.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
options(repos = list(CRAN = "http://cran.rstudio.com/"))
options(device = function() png(width = 900))
# Suppressing package startup messages in package loads
# WART: this appears dangerous and is likely the source of
# future tough-to-debug bugs
# (removing this for now as it caused issues with the gbm package)
# env <- as.environment('package:base')
# unlockBinding('library', env)
# library.warn <- library
# utils::assignInNamespace('library', function(
# package, help, pos = 2, lib.loc = NULL, character.only = FALSE,
# logical.return = FALSE, warn.conflicts = TRUE, quietly = FALSE,
# verbose = getOption("verbose")) {
# if (!character.only) {
# package <- as.character(substitute(package))
# }
# suppressPackageStartupMessages(library.warn(
# package, help, pos, lib.loc, character.only = TRUE,
# logical.return, warn.conflicts, quietly, verbose))
# }, ns="base")
# lockBinding('library', env)
# Needed to make plots in rendered iR notebooks display correctly
options(jupyter.plot_mimetypes = "image/png")
source("/kaggle/kaggle_bigquery.R")
source("/kaggle/kaggle_secrets.R")
# Ensure the file ends in a newline
# https://yihui.name/en/2018/04/rprofile-trailing-newline/.