Skip to content

Commit

Permalink
Merge pull request #25933 from jackfeltham/main
Browse files Browse the repository at this point in the history
Adding DDOutlier R package from CRAN
  • Loading branch information
mfansler authored Apr 4, 2024
2 parents cc68af0 + 1d9102b commit f5072f8
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/r-ddoutlier/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build . %R_ARGS%
IF %ERRORLEVEL% NEQ 0 exit /B 1
3 changes: 3 additions & 0 deletions recipes/r-ddoutlier/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
${R} CMD INSTALL --build . ${R_ARGS}
90 changes: 90 additions & 0 deletions recipes/r-ddoutlier/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{% set version = '0.1.0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
name: r-ddoutlier
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/DDoutlier_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/DDoutlier/DDoutlier_{{ version }}.tar.gz
sha256: 4d0b36daeda826e54e103a7bf05434c18d433f619756714a2a49ce4101fee5ab

build:
merge_build_host: True # [win]
number: 0
noarch: generic
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ posix }}zip # [win]
- cross-r-base {{ r_base }} # [build_platform != target_platform]
host:
- r-base
- r-dbscan
- r-pracma
- r-proxy
run:
- r-base
- r-dbscan
- r-pracma
- r-proxy

test:
commands:
- $R -e "library('DDoutlier')" # [not win]
- "\"%R%\" -e \"library('DDoutlier')\"" # [win]

about:
home: https://github.com/jhmadsen/DDoutlier
license: MIT
summary: "Outlier detection in multidimensional domains. Implementation of notable distance
and density-based outlier algorithms. Allows users to identify local outliers by
comparing observations to their nearest neighbors, reverse nearest neighbors, shared
neighbors or natural neighbors. For distance-based approaches, see Knorr, M., &
Ng, R. T. (1997) <doi:10.1145/782010.782021>, Angiulli, F., & Pizzuti, C. (2002)
<doi:10.1007/3-540-45681-3_2>, Hautamaki, V., & Ismo, K. (2004) <doi:10.1109/ICPR.2004.1334558>
and Zhang, K., Hutter, M. & Jin, H. (2009) <doi:10.1007/978-3-642-01307-2_84>. For
density-based approaches, see Tang, J., Chen, Z., Fu, A. W. C., & Cheung, D. W.
(2002) <doi:10.1007/3-540-47887-6_53>, Jin, W., Tung, A. K. H., Han, J., & Wang,
W. (2006) <doi:10.1007/11731139_68>, Schubert, E., Zimek, A. & Kriegel, H-P. (2014)
<doi:10.1137/1.9781611973440.63>, Latecki, L., Lazarevic, A. & Prokrajac, D. (2007)
<doi:10.1007/978-3-540-73499-4_6>, Papadimitriou, S., Gibbons, P. B., & Faloutsos,
C. (2003) <doi:10.1109/ICDE.2003.1260802>, Breunig, M. M., Kriegel, H.-P., Ng, R.
T., & Sander, J. (2000) <doi:10.1145/342009.335388>, Kriegel, H.-P., Kr\xF6ger,
P., Schubert, E., & Zimek, A. (2009) <doi:10.1145/1645953.1646195>, Zhu, Q., Feng,
Ji. & Huang, J. (2016) <doi:10.1016/j.patrec.2016.05.007>, Huang, J., Zhu, Q., Yang,
L. & Feng, J. (2015) <doi:10.1016/j.knosys.2015.10.014>, Tang, B. & Haibo, He. (2017)
<doi:10.1016/j.neucom.2017.02.039> and Gao, J., Hu, W., Zhang, X. & Wu, Ou. (2011)
<doi:10.1007/978-3-642-20847-8_23>."
license_family: MIT
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
- LICENSE

extra:
recipe-maintainers:
- conda-forge/r
- jackfeltham

# Package: DDoutlier
# Type: Package
# Title: Distance & Density-Based Outlier Detection
# Version: 0.1.0
# Author: Jacob H. Madsen <[email protected]>
# Maintainer: Jacob H. Madsen <[email protected]>
# Description: Outlier detection in multidimensional domains. Implementation of notable distance and density-based outlier algorithms. Allows users to identify local outliers by comparing observations to their nearest neighbors, reverse nearest neighbors, shared neighbors or natural neighbors. For distance-based approaches, see Knorr, M., & Ng, R. T. (1997) <doi:10.1145/782010.782021>, Angiulli, F., & Pizzuti, C. (2002) <doi:10.1007/3-540-45681-3_2>, Hautamaki, V., & Ismo, K. (2004) <doi:10.1109/ICPR.2004.1334558> and Zhang, K., Hutter, M. & Jin, H. (2009) <doi:10.1007/978-3-642-01307-2_84>. For density-based approaches, see Tang, J., Chen, Z., Fu, A. W. C., & Cheung, D. W. (2002) <doi:10.1007/3-540-47887-6_53>, Jin, W., Tung, A. K. H., Han, J., & Wang, W. (2006) <doi:10.1007/11731139_68>, Schubert, E., Zimek, A. & Kriegel, H-P. (2014) <doi:10.1137/1.9781611973440.63>, Latecki, L., Lazarevic, A. & Prokrajac, D. (2007) <doi:10.1007/978-3-540-73499-4_6>, Papadimitriou, S., Gibbons, P. B., & Faloutsos, C. (2003) <doi:10.1109/ICDE.2003.1260802>, Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000) <doi:10.1145/342009.335388>, Kriegel, H.-P., Kroger, P., Schubert, E., & Zimek, A. (2009) <doi:10.1145/1645953.1646195>, Zhu, Q., Feng, Ji. & Huang, J. (2016) <doi:10.1016/j.patrec.2016.05.007>, Huang, J., Zhu, Q., Yang, L. & Feng, J. (2015) <doi:10.1016/j.knosys.2015.10.014>, Tang, B. & Haibo, He. (2017) <doi:10.1016/j.neucom.2017.02.039> and Gao, J., Hu, W., Zhang, X. & Wu, Ou. (2011) <doi:10.1007/978-3-642-20847-8_23>.
# License: MIT + file LICENSE
# URL: https://github.com/jhmadsen/DDoutlier
# Encoding: UTF-8
# LazyData: true
# Imports: dbscan, proxy, pracma
# NeedsCompilation: no
# Packaged: 2018-05-29 21:18:22 UTC; Jacob
# Repository: CRAN
# Date/Publication: 2018-05-30 13:24:41 UTC

0 comments on commit f5072f8

Please sign in to comment.