Skip to content

Commit d47a83f

Browse files
committed
dev script updates only: CRAN_Release, and added my .bash_aliases and .Rprofile
1 parent 4bda6da commit d47a83f

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

.dev/.Rprofile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Matt's ~/.Rprofile is a link to this file at ~/GitHub/data.table/.dev/.Rprofile
2+
3+
# options(repos = c(CRAN="http://cran.stat.ucla.edu"))
4+
# options(repos = c(CRAN=c("http://cran.stat.ucla.edu", "http://cloud.r-project.org"))) # both needed for revdep checks sometimes
5+
options(repos = c(CRAN="http://cloud.r-project.org"))
6+
7+
options(help_type="html")
8+
options(error=quote(dump.frames()))
9+
options(width=200)
10+
options(digits.secs=3) # for POSIXct to print milliseconds
11+
suppressWarnings(RNGversion("3.5.0")) # so when I create tests in dev there isn't a mismatch when run by cc()
12+
13+
Sys.setenv(PROJ_PATH=path.expand("~/GitHub/data.table"))
14+
source(paste0(Sys.getenv("PROJ_PATH"),"/.dev/cc.R"))

.dev/.bash_aliases

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Matt's ~/.bash_aliases is a link to this file ~/GitHub/data.table/.dev/.bash_aliases
2+
3+
# One off configure meld as difftool:
4+
# git config --global diff.tool meld
5+
# git config --global difftool.prompt false
6+
alias gd='git difftool &> /dev/null'
7+
alias gdm='git difftool master &> /dev/null'
8+
9+
alias Rdevel='~/build/R-devel/bin/R --vanilla'
10+
alias Rdevel-strict-gcc='~/build/R-devel-strict-gcc/bin/R --vanilla'
11+
alias Rdevel-strict-clang='~/build/R-devel-strict-clang/bin/R --vanilla'
12+
alias Rdevel32='~/build/32bit/R-devel/bin/R --vanilla'
13+
alias R310='~/build/R-3.1.0/bin/R --vanilla'
14+
alias revdepsh='cd ~/build/revdeplib/ && export TZ=UTC && export R_LIBS_SITE=none && export R_LIBS=~/build/revdeplib/ && export _R_CHECK_FORCE_SUGGESTS_=false'
15+
alias revdepr='revdepsh; R_PROFILE_USER=~/GitHub/data.table/.dev/revdep.R ~/build/R-devel/bin/R'
16+
17+
export R_PROFILE_USER='~/.Rprofile'
18+
# there's a .Rprofile in ~/GitHub/data.table/ so Matt sets R_PROFILE_USER here to always use ~/.Rprofile
19+
# even when starting R in ~/GitHub/data.table
20+
# Matt's ~/.Rprofile as a link to ~/GitHub/data.table/.dev/.Rprofile
21+

.dev/CRAN_Release.cmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ cd R-devel # used for revdep testing: .dev/revdep.R.
304304
./configure CFLAGS="-O2 -Wall -pedantic"
305305
make
306306

307-
# use latest available below `apt cache search gcc-` or `clang-`
307+
# use latest available below `apt-cache search gcc-` or `clang-`
308308
cd ../R-devel-strict-clang
309309
./configure --without-recommended-packages --disable-byte-compiled-packages --disable-openmp --enable-strict-barrier --disable-long-double CC="clang-8 -fsanitize=undefined,address -fno-sanitize=float-divide-by-zero -fno-omit-frame-pointer"
310310
make
@@ -479,7 +479,7 @@ sudo apt-get -y install r-base r-base-dev
479479
sudo apt-get -y build-dep r-base-dev
480480
sudo apt-get -y build-dep qpdf
481481
sudo apt-get -y install aptitude
482-
sudo aptitude build-dep r-cran-rgl # leads to libglu1-mesa-dev
482+
sudo aptitude -y build-dep r-cran-rgl # leads to libglu1-mesa-dev
483483
sudo apt-get -y build-dep r-cran-rmpi
484484
sudo apt-get -y build-dep r-cran-cairodevice
485485
sudo apt-get -y build-dep r-cran-tkrplot
@@ -490,8 +490,7 @@ sudo apt-get -y install libv8-dev
490490
sudo apt-get -y install gsl-bin libgsl0-dev
491491
sudo apt-get -y install libgtk2.0-dev netcdf-bin
492492
sudo apt-get -y install libcanberra-gtk-module
493-
sudo apt-get -y install git
494-
sudo apt-get -y install openjdk-8-jdk
493+
sudo apt-get -y install openjdk-11-jdk # solves "fatal error: jni.h: No such file or directory"; change 11 to match "java --version"
495494
sudo apt-get -y install libnetcdf-dev udunits-bin libudunits2-dev
496495
sudo apt-get -y install tk8.6-dev
497496
sudo apt-get -y install clustalo # for package LowMACA
@@ -512,14 +511,16 @@ sudo apt-get -y install libmagick++-dev # for magick
512511
sudo apt-get -y install libjq-dev libprotoc-dev libprotobuf-dev and protobuf-compiler # for protolite
513512
sudo apt-get -y install python-dev # for PythonInR
514513
sudo apt-get -y install gdal-bin libgeos-dev # for rgdal/raster tested via lidR
515-
sudo apt-get build-dep r-cran-rsymphony # for Rsymphony: coinor-libcgl-dev coinor-libclp-dev coinor-libcoinutils-dev coinor-libosi-dev coinor-libsymphony-dev
514+
sudo apt-get -y build-dep r-cran-rsymphony # for Rsymphony: coinor-libcgl-dev coinor-libclp-dev coinor-libcoinutils-dev coinor-libosi-dev coinor-libsymphony-dev
516515
sudo apt-get -y install libtesseract-dev libleptonica-dev tesseract-ocr-eng # for tesseract
517516
sudo apt-get -y install libssl-dev libsasl2-dev
518517
sudo apt-get -y install biber # for ctsem
519518
sudo apt-get -y install libopenblas-dev # for ivmte (+ local R build with default ./configure to pick up shared openblas)
520519
sudo apt-get -y install libhiredis-dev # for redux used by nodbi
521520
sudo apt-get -y install libzmq3-dev # for rzmq
522521
sudo apt-get -y install libimage-exiftool-perl # for camtrapR
522+
sudo apt-get -y install parallel # for revdepr.R
523+
sudo apt-get -y install pandoc-citeproc # for basecallQC
523524
sudo R CMD javareconf
524525
# ENDIF
525526

0 commit comments

Comments
 (0)