Skip to content

Commit

Permalink
add libgmp3-dev and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Oct 30, 2018
1 parent 2b11b94 commit 0360dcd
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 18 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Docker OpenStudio R - Base Image

## 3.4.2 - 2018-10-30

* Add libgmp3-dev to dependencies to support newer DoE.base package
* Use new install_and_verify method for install R packages to actually test that the packages install correctly.

## 3.4.2 - 2018-03-09

* Base installation of dependencies and R packages

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apt-get update \
libffi-dev \
libssl-dev \
libyaml-dev \
libgmp3-dev \
procps \
ruby \
ruby-dev \
Expand Down
82 changes: 64 additions & 18 deletions base_packages.R
Original file line number Diff line number Diff line change
@@ -1,27 +1,73 @@
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# (1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# (2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# (3) Neither the name of the copyright holder nor the names of any contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission from the respective party.
#
# (4) Other than as required in clauses (1) and (2), distributions in any form
# of modifications or other derivative works may not use the "OpenStudio"
# trademark, "OS", "os", or any other confusingly similar designation without
# specific prior written permission from Alliance for Sustainable Energy, LLC.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# *******************************************************************************

# Function for installing and verifying that the package was installed correctly (i.e. can be loaded)
install_and_verify = function(package_name, configure.args=c(), repos=c('http://cloud.r-project.org','http://cran.r-project.org')){
print(paste('Calling install for package ', package_name, sep=''))
install.packages(package_name, configure.args=configure.args, repos=repos)
if (!require(package_name, character.only = TRUE)){
print('Error installing package, check log')
quit(status=1)
}
print(paste('Successfully installed and test loaded ', package_name, sep=''))
}

# Install Base Packages
install.packages('R.methodsS3', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('R.oo', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('R.utils', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('Rcpp', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('rjson', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('RSQLite', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('RUnit', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install_and_verify('R.methodsS3')
install_and_verify('R.oo')
install_and_verify('R.utils')
install_and_verify('Rcpp')
install_and_verify('rjson')
install_and_verify('RSQLite')
install_and_verify('RUnit')

# Data Manipulation
install.packages('plyr', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('reshape2', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install_and_verify('plyr')
install_and_verify('reshape2')

# timeseries
install.packages('xts', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install_and_verify('xts')

# plotting / visualization
install.packages('cowplot', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('ggplot2', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('ggsci', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('vcd', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install_and_verify('cowplot')
install_and_verify('ggplot2')
install_and_verify('ggsci')
install_and_verify('vcd')

# parallel processing
install.packages('doMC', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('doParallel', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('foreach', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('iterators', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install_and_verify('doMC')
install_and_verify('doParallel')
install_and_verify('foreach')
install_and_verify('iterators')

0 comments on commit 0360dcd

Please sign in to comment.