stephenslab / rssr

Regression with summary statistics (RSS) package for R.
10 stars 2 forks source link

Suggest adding instructions for installing release to README #3

Open pcarbo opened 7 years ago

pcarbo commented 7 years ago

Not sure if there is a simpler way to do this, but this is what I did on my MacBook Air:

wget https://cran.r-project.org/src/contrib/h5_0.9.8.tar.gz
tar zxvf h5_0.9.8.tar.gz
R CMD INSTALL h5 --configure-vars="LIBS='-L/Users/pcarbo/anaconda3/lib -L. -lhdf5_cpp -lhdf5 -lz -lm' CPPFLAGS='-I/usr/local/include'"

Note the use of Anaconda (which was not documented in the h5 installation instructions.

And then in R:

install.packages(c("future","future.BatchJobs","RcppParallel"))
install.packages("rssr-0.1.0-alpha.tar.gz",type="source",repos=NULL)

You also may want to link to more detailed installation instructions for the h5 package; e.g., here or here, although actually I found that their installation instructions were very confusing and not particularly helpful (see here).