Skip to content

Commit

Permalink
set the root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pschloss committed Feb 27, 2015
1 parent 2c97a0b commit 24e7086
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
if (require("knitr")) {
opts_chunk$set(fig.path="results/figures/")
opts_knit$set(base.dir=normalizePath(getwd()))
opts_knit$set(root.dir=normalizePath(getwd()))
}

############################################################
Expand All @@ -19,4 +20,8 @@ cat('Project home directory is available as PROJHOME or via get("PROJHOME","RPRO
rm(RPROJ)
############################################################

options("repos" = c(CRAN = "http://cran.rstudio.com/"))
local({
r <- getOption("repos")
r["CRAN"] <- "http://cran.cnr.berkeley.edu/"
options(repos = r)
})

0 comments on commit 24e7086

Please sign in to comment.