Skip to content

Commit

Permalink
Merge pull request #27377 from mfansler/r-rbeta2009
Browse files Browse the repository at this point in the history
adds `r-rbeta2009`
  • Loading branch information
bgruening authored Aug 24, 2024
2 parents 3c951fe + 7e9e499 commit 8f443c4
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/r-rbeta2009/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-rbeta2009/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}
75 changes: 75 additions & 0 deletions recipes/r-rbeta2009/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{% set version = '1.0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
url:
- {{ cran_mirror }}/src/contrib/rBeta2009_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/rBeta2009/rBeta2009_{{ version }}.tar.gz
sha256: d8be1df85ff880a2849013b0c4ab80138b1ae32273e803a9196a25db2ced5f52

build:
merge_build_host: True # [win]
number: 0
rpaths:
- lib/R/lib/
- lib/
missing_dso_whitelist:
- '*/R.dll' # [win]
- '*/Rblas.dll' # [win]
- '*/Rlapack.dll' # [win]

requirements:
build:
- cross-r-base {{ r_base }} # [build_platform != target_platform]
- {{ compiler('c') }} # [not win]
- {{ stdlib("c") }} # [not win]
- {{ compiler('m2w64_c') }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler('cxx') }} # [not win]
- {{ compiler('m2w64_cxx') }} # [win]
- {{ posix }}filesystem # [win]
- {{ posix }}make
- {{ posix }}sed # [win]
- {{ posix }}coreutils # [win]
- {{ posix }}zip # [win]
host:
- r-base
run:
- r-base

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

about:
home: https://CRAN.R-project.org/package=rBeta2009
license: GPL-2.0-only
summary: The package contains functions to generate random numbers from the beta distribution
and random vectors from the Dirichlet distribution.
license_family: GPL2
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: rBeta2009
# Type: Package
# Title: The Beta Random Number and Dirichlet Random Vector Generating Functions
# Version: 1.0
# Date: 2012-02-25
# Author: Ching-Wei Cheng, Ying-Chao Hung, Narayanaswamy Balakrishnan
# Maintainer: Ching-Wei Cheng <aks43725@gmail.com>
# Description: The package contains functions to generate random numbers from the beta distribution and random vectors from the Dirichlet distribution.
# License: GPL-2
# LazyLoad: yes
# Packaged: 2012-03-01 09:14:15 UTC; Cheng
# Repository: CRAN
# Date/Publication: 2012-03-01 09:33:12

0 comments on commit 8f443c4

Please sign in to comment.