From 1ec8f6ea3fb2eb02caea856b6906ec1474c0db0e Mon Sep 17 00:00:00 2001 From: lingnanyuan <1297162327@qq.com> Date: Tue, 31 Oct 2017 19:30:49 -0500 Subject: [PATCH] r-nloptr: Create new package. (#6063) --- .../builtin/packages/r-nloptr/package.py | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/var/spack/repos/builtin/packages/r-nloptr/package.py b/var/spack/repos/builtin/packages/r-nloptr/package.py index 110cb8c406..e378bb7098 100644 --- a/var/spack/repos/builtin/packages/r-nloptr/package.py +++ b/var/spack/repos/builtin/packages/r-nloptr/package.py @@ -26,15 +26,19 @@ class RNloptr(RPackage): - """nloptr is an R interface to NLopt. NLopt is a free/open-source library - for nonlinear optimization, providing a common interface for a number of - different free optimization routines available online as well as original - implementations of various other algorithms. See - http://ab-initio.mit.edu/wiki/index.php/NLopt_Introduction for more - information on the available algorithms. During installation on Unix the - NLopt code is downloaded and compiled from the NLopt website.""" + """nloptr is an R interface to NLopt. NLopt is a free/open-source + library for nonlinear optimization, providing a common interface + for a number of different free optimization routines available + online as well as original implementations of various other + algorithms. See http://ab-initio.mit.edu/wiki/index.php/NLopt + _Introduction for more information on the available algorithms. + During installation on Unix the NLopt code is downloaded and + compiled from the NLopt website.""" homepage = "https://cran.r-project.org/package=nloptr" - url = "https://cran.r-project.org/src/contrib/nloptr_1.0.4.tar.gz" + url = "https://cran.rstudio.com/src/contrib/nloptr_1.0.4.tar.gz" + list_url = "https://cran.rstudio.com/src/contrib/Archive/nloptr" - version('1.0.4', '9af69a613349b236fd377d0a107f484c') + version('1.0.4', 'f2775dfb4f7f5552d46937a04c062b0d') + + depends_on('r-testthat', type=('build', 'run'))