forked from vagarwal87/TargetScanTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.Rprofile
More file actions
19 lines (15 loc) · 672 Bytes
/
.Rprofile
File metadata and controls
19 lines (15 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
args = commandArgs(trailingOnly = T)
head <- function(x, y = 5) { base::print(utils::head(x, y)) }
say <- function(...) { base::print(paste(...)) }
tryCatch({options(width = as.integer(Sys.getenv("COLUMNS")))}, error = function(err) {options(width=236)})
.Last <- function(){
if (!any(commandArgs() == '--no-readline') && interactive()) {
require(utils)
try(savehistory(".Rhistory"))
}
}
error.bar <- function(x, y, upper, lower=upper, length=0.1,...){
if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper))
stop("vectors must be same length")
arrows(x,y+upper, x, y-lower, angle=90, code=3, length=length, ...)
}