-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7567 from dpryan79/cran_120119
Add r-clustersim and r-earth
- Loading branch information
Showing
3 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"%R%" CMD INSTALL --build . | ||
IF %ERRORLEVEL% NEQ 0 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then | ||
export DISABLE_AUTOBREW=1 | ||
$R CMD INSTALL --build . | ||
else | ||
mkdir -p $PREFIX/lib/R/library/earth | ||
mv * $PREFIX/lib/R/library/earth | ||
if [[ $target_platform == osx-64 ]]; then | ||
pushd $PREFIX | ||
for libdir in lib/R/lib lib/R/modules lib/R/library lib/R/bin/exec sysroot/usr/lib; do | ||
pushd $libdir || exit 1 | ||
for SHARED_LIB in $(find . -type f -iname "*.dylib" -or -iname "*.so" -or -iname "R"); do | ||
echo "fixing SHARED_LIB $SHARED_LIB" | ||
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true | ||
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/local/clang4/lib/libomp.dylib "$PREFIX"/lib/libomp.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/local/gfortran/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true | ||
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/local/gfortran/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true | ||
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libgcc_s.1.dylib "$PREFIX"/lib/libgcc_s.1.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libiconv.2.dylib "$PREFIX"/sysroot/usr/lib/libiconv.2.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libicucore.A.dylib "$PREFIX"/sysroot/usr/lib/libicucore.A.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libexpat.1.dylib "$PREFIX"/lib/libexpat.1.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libcurl.4.dylib "$PREFIX"/lib/libcurl.4.dylib $SHARED_LIB || true | ||
install_name_tool -change /usr/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true | ||
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true | ||
done | ||
popd | ||
done | ||
popd | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{% set version = '4.7.0' %} | ||
{% set posix = 'm2-' if win else '' %} | ||
{% set native = 'm2w64-' if win else '' %} | ||
|
||
package: | ||
name: r-earth | ||
version: {{ version|replace("-", "_") }} | ||
|
||
source: | ||
url: | ||
- {{ cran_mirror }}/src/contrib/earth_{{ version }}.tar.gz | ||
- {{ cran_mirror }}/src/contrib/Archive/earth/earth_{{ version }}.tar.gz | ||
sha256: 846c3717d2427981b6191f752fe7dde90e200062fac04068a909fc55c72dd610 | ||
|
||
build: | ||
merge_build_host: True # [win] | ||
number: 0 | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} # [not win] | ||
- {{ compiler('fortran') }} # [not win] | ||
- {{native}}toolchain # [win] | ||
- {{posix}}filesystem # [win] | ||
- {{posix}}make | ||
- {{posix}}sed # [win] | ||
- {{posix}}coreutils # [win] | ||
- {{posix}}zip # [win] | ||
host: | ||
- r-base | ||
- r-teachingdemos >=2.10 | ||
- r-plotmo >=3.5.1 | ||
run: | ||
- r-base | ||
- {{native}}gcc-libs # [win] | ||
- r-teachingdemos >=2.10 | ||
- r-plotmo >=3.5.1 | ||
|
||
test: | ||
commands: | ||
- $R -e "library('earth')" # [not win] | ||
- "\"%R%\" -e \"library('earth')\"" # [win] | ||
|
||
about: | ||
home: http://www.milbo.users.sonic.net/earth | ||
license: GPL-3 | ||
summary: Build regression models using the techniques in Friedman's papers "Fast MARS" and | ||
"Multivariate Adaptive Regression Splines" <doi:10.1214/aos/1176347963>. (The term | ||
"MARS" is trademarked and thus not used in the name of the package.) | ||
license_family: GPL3 | ||
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' | ||
|
||
extra: | ||
recipe-maintainers: | ||
- conda-forge/r | ||
|
||
# Package: earth | ||
# Version: 4.7.0 | ||
# Title: Multivariate Adaptive Regression Splines | ||
# Author: Stephen Milborrow. Derived from mda:mars by Trevor Hastie and Rob Tibshirani. Uses Alan Miller's Fortran utilities with Thomas Lumley's leaps wrapper. | ||
# Maintainer: Stephen Milborrow <[email protected]> | ||
# Depends: R (>= 3.5.0), plotmo (>= 3.5.1), TeachingDemos (>= 2.10) | ||
# Suggests: gam (>= 1.16), mgcv (>= 1.8-26), mda (>= 0.4-10), MASS (>= 7.3-51) | ||
# Description: Build regression models using the techniques in Friedman's papers "Fast MARS" and "Multivariate Adaptive Regression Splines" <doi:10.1214/aos/1176347963>. (The term "MARS" is trademarked and thus not used in the name of the package.) | ||
# License: GPL-3 | ||
# LazyData: yes | ||
# URL: http://www.milbo.users.sonic.net/earth | ||
# Packaged: 2019-01-03 07:48:01 UTC; milbo | ||
# Repository: CRAN | ||
# Date/Publication: 2019-01-03 16:20:09 UTC | ||
# RoxygenNote: 5.0.1 | ||
# NeedsCompilation: yes |