-
-
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.
- Loading branch information
Showing
3 changed files
with
121 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/NoiseFiltersR | ||
mv * $PREFIX/lib/R/library/NoiseFiltersR | ||
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,85 @@ | ||
{% set version = '0.1.0' %} | ||
{% set posix = 'm2-' if win else '' %} | ||
{% set native = 'm2w64-' if win else '' %} | ||
|
||
package: | ||
name: r-noisefiltersr | ||
version: {{ version|replace("-", "_") }} | ||
|
||
source: | ||
url: | ||
- {{ cran_mirror }}/src/contrib/NoiseFiltersR_{{ version }}.tar.gz | ||
- {{ cran_mirror }}/src/contrib/Archive/NoiseFiltersR/NoiseFiltersR_{{ version }}.tar.gz | ||
sha256: 17485427c5dc1cac5e2a8f53cc21188a8a9301381c82f0c61151c3e250d42079 | ||
|
||
build: | ||
merge_build_host: True # [win] | ||
number: 0 | ||
noarch: generic | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
|
||
requirements: | ||
build: | ||
- {{ posix }}zip # [win] | ||
host: | ||
- r-base | ||
- r-mass | ||
- r-rweka | ||
- r-caret | ||
- r-e1071 | ||
- r-kknn | ||
- r-nnet | ||
- r-rjava | ||
- r-randomforest | ||
- r-rpart | ||
run: | ||
- r-base | ||
- r-mass | ||
- r-rweka | ||
- r-caret | ||
- r-e1071 | ||
- r-kknn | ||
- r-nnet | ||
- r-rjava | ||
- r-randomforest | ||
- r-rpart | ||
|
||
test: | ||
commands: | ||
- $R -e "library('NoiseFiltersR')" # [not win] | ||
- "\"%R%\" -e \"library('NoiseFiltersR')\"" # [win] | ||
|
||
about: | ||
home: https://CRAN.R-project.org/package=NoiseFiltersR | ||
license: GPL-3.0-only | ||
summary: An extensive implementation of state-of-the-art and classical algorithms to preprocess | ||
label noise in classification problems. | ||
license_family: GPL3 | ||
license_file: | ||
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' | ||
|
||
extra: | ||
recipe-maintainers: | ||
- conda-forge/r | ||
|
||
# Package: NoiseFiltersR | ||
# Type: Package | ||
# Title: Label Noise Filters for Data Preprocessing in Classification | ||
# Version: 0.1.0 | ||
# Authors@R: c( person("Pablo", "Morales", email = "[email protected]", role = c("aut")), person("Julian", "Luengo", email = "[email protected]", role = c("aut","cre")), person("Luis P.F.", "Garcia", role = c("aut")), person("Ana C.", "Lorena", role = c("aut")), person("Andre C.P.L.F.", "de Carvalho", role = c("aut")), person("Francisco", "Herrera", role = c("aut"))) | ||
# Description: An extensive implementation of state-of-the-art and classical algorithms to preprocess label noise in classification problems. | ||
# License: GPL-3 | ||
# LazyData: TRUE | ||
# Imports: RWeka, kknn, nnet, caret, e1071, rpart, randomForest, MASS, rJava, stats, utils | ||
# Depends: R (>= 3.3.0) | ||
# RoxygenNote: 5.0.1 | ||
# Suggests: knitr, rmarkdown, testthat | ||
# VignetteBuilder: knitr | ||
# NeedsCompilation: no | ||
# Packaged: 2016-06-24 10:17:13 UTC; pablo | ||
# Author: Pablo Morales [aut], Julian Luengo [aut, cre], Luis P.F. Garcia [aut], Ana C. Lorena [aut], Andre C.P.L.F. de Carvalho [aut], Francisco Herrera [aut] | ||
# Maintainer: Julian Luengo <[email protected]> | ||
# Repository: CRAN | ||
# Date/Publication: 2016-06-24 12:34:50 |