Skip to content

Commit a39ab53

Browse files
committed
Add r-shinytree
1 parent 3f96aad commit a39ab53

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

recipes/r-shinytree/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%R%" CMD INSTALL --build .
2+
IF %ERRORLEVEL% NEQ 0 exit 1

recipes/r-shinytree/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then
4+
export DISABLE_AUTOBREW=1
5+
mv DESCRIPTION DESCRIPTION.old
6+
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION
7+
$R CMD INSTALL --build .
8+
else
9+
mkdir -p $PREFIX/lib/R/library/shinyTree
10+
mv * $PREFIX/lib/R/library/shinyTree
11+
fi

recipes/r-shinytree/meta.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{% set version = '0.2.6' %}
2+
3+
{% set posix = 'm2-' if win else '' %}
4+
{% set native = 'm2w64-' if win else '' %}
5+
6+
package:
7+
name: r-shinytree
8+
version: {{ version|replace("-", "_") }}
9+
10+
source:
11+
fn: shinyTree_{{ version }}.tar.gz
12+
url:
13+
- {{ cran_mirror }}/src/contrib/shinyTree_{{ version }}.tar.gz
14+
- {{ cran_mirror }}/src/contrib/Archive/shinyTree/shinyTree_{{ version }}.tar.gz
15+
sha256: d278405c3e7ef31064367b9b165bbde900ecb472e0ed7c5d91ee572d37b786e7
16+
17+
build:
18+
merge_build_host: True # [win]
19+
number: 0
20+
rpaths:
21+
- lib/R/lib/
22+
- lib/
23+
24+
# Suggests: testthat
25+
requirements:
26+
build:
27+
- {{posix}}zip # [win]
28+
29+
host:
30+
- r-base
31+
- r-jsonlite
32+
- r-shiny >=0.9.0
33+
34+
run:
35+
- r-base
36+
- r-jsonlite
37+
- r-shiny >=0.9.0
38+
39+
test:
40+
commands:
41+
- $R -e "library('shinyTree')" # [not win]
42+
- "\"%R%\" -e \"library('shinyTree')\"" # [win]
43+
44+
about:
45+
home: https://CRAN.R-project.org/package=shinyTree
46+
license: MIT
47+
summary: Exposes bindings to jsTree -- a JavaScript library that supports interactive trees
48+
-- to enable a rich, editable trees in Shiny.
49+
license_family: MIT
50+
51+
extra:
52+
recipe-maintainers:
53+
- dpryan79
54+
- MathiasHaudgaard
55+
- FrodePedersen
56+
- ArneKr
57+
- johanneskoester
58+
- bgruening
59+
- daler
60+
- jdblischak

0 commit comments

Comments
 (0)