Skip to content

Commit 25fbdc7

Browse files
authored
add mh (#175)
1 parent 77a368f commit 25fbdc7

File tree

9 files changed

+505
-0
lines changed

9 files changed

+505
-0
lines changed

.Rbuildignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ tests/.renvignore
1515
^docs$
1616
^pkgdown$
1717
^\.gitignore$
18+
^CITATION\.cff$
19+
^install\.R$
20+
^\.binder$
21+
^_quarto\.yml$
22+
^\.quarto$
23+
^methodshub

.binder/apt.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
zip

.binder/install.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
install.packages("rang")

.binder/postBuild

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/usr/bin/env -S bash -v
2+
3+
# determine which version of Quarto to install
4+
QUARTO_VERSION=1.6.39
5+
6+
# See whether we need to lookup a Quarto version
7+
if [ $QUARTO_VERSION = "prerelease" ]; then
8+
QUARTO_JSON="_prerelease.json"
9+
elif [ $QUARTO_VERSION = "release" ]; then
10+
QUARTO_JSON="_download.json"
11+
fi
12+
13+
if [ $QUARTO_JSON != "" ]; then
14+
15+
# create a python script and run it
16+
PYTHON_SCRIPT=_quarto_version.py
17+
if [ -e $PYTHON_SCRIPT ]; then
18+
rm -rf $PYTHON_SCRIPT
19+
fi
20+
21+
cat > $PYTHON_SCRIPT <<EOF
22+
import urllib, json
23+
24+
import urllib.request, json
25+
with urllib.request.urlopen("https://quarto.org/docs/download/${QUARTO_JSON}") as url:
26+
data = json.load(url)
27+
print(data['version'])
28+
29+
EOF
30+
31+
QUARTO_VERSION=$(python $PYTHON_SCRIPT)
32+
rm -rf $PYTHON_SCRIPT
33+
34+
fi
35+
36+
37+
echo
38+
echo Installing Quarto $QUARTO_VERSION
39+
echo
40+
41+
# download and install the deb file
42+
curl -LO https://github.com/quarto-dev/quarto-cli/releases/download/v$QUARTO_VERSION/quarto-$QUARTO_VERSION-linux-amd64.deb
43+
dpkg -x quarto-$QUARTO_VERSION-linux-amd64.deb .quarto
44+
rm -rf quarto-$QUARTO_VERSION-linux-amd64.deb
45+
46+
# get quarto in the path
47+
mkdir -p ~/.local/bin
48+
ln -s ~/.quarto/opt/quarto/bin/quarto ~/.local/bin/quarto
49+
50+
# create the proper pandoc symlink to enable visual editor in Quarto extension
51+
ln -s ~/.quarto/opt/quarto/bin/tools/x86_64/pandoc ~/.quarto/opt/quarto/bin/tools/pandoc
52+
53+
54+
echo
55+
echo Installed Quarto
56+
echo
57+
# install required python packages
58+
python3 -m pip install jupyterlab-quarto==0.1.45
59+
60+
echo
61+
echo Completed
62+
echo

.binder/runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
r-4.3.3-2024-02-29

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
inst/doc
22
docs
3+
4+
/.quarto/

CITATION.cff

Lines changed: 312 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,312 @@
1+
# --------------------------------------------
2+
# CITATION file created with {cffr} R package
3+
# See also: https://docs.ropensci.org/cffr/
4+
# --------------------------------------------
5+
6+
cff-version: 1.2.0
7+
message: 'To cite package "rang" in publications use:'
8+
type: software
9+
license: GPL-3.0-or-later
10+
title: 'rang: Reconstructing Reproducible R Computational Environments'
11+
version: 0.3.0
12+
doi: 10.1371/journal.pone.0286761
13+
identifiers:
14+
- type: doi
15+
value: 10.32614/CRAN.package.rang
16+
abstract: Resolve the dependency graph of R packages at a specific time point based
17+
on the information from various 'R-hub' web services <https://blog.r-hub.io/>. The
18+
dependency graph can then be used to reconstruct the R computational environment
19+
with 'Rocker' <https://rocker-project.org>.
20+
authors:
21+
- family-names: Chan
22+
given-names: Chung-hong
23+
24+
orcid: https://orcid.org/0000-0002-6232-7530
25+
- family-names: Schoch
26+
given-names: David
27+
28+
orcid: https://orcid.org/0000-0003-2952-4812
29+
preferred-citation:
30+
type: article
31+
title: 'rang: Reconstructing reproducible R computational environments'
32+
authors:
33+
- family-names: Chan
34+
given-names: Chung-hong
35+
36+
orcid: https://orcid.org/0000-0002-6232-7530
37+
- family-names: Schoch
38+
given-names: David
39+
40+
orcid: https://orcid.org/0000-0003-2952-4812
41+
journal: PLOS ONE
42+
url: https://github.com/gesistsa/rang
43+
year: '2023'
44+
doi: 10.1371/journal.pone.0286761
45+
repository: https://CRAN.R-project.org/package=rang
46+
repository-code: https://github.com/gesistsa/rang
47+
url: https://gesistsa.github.io/rang
48+
contact:
49+
- family-names: Chan
50+
given-names: Chung-hong
51+
52+
orcid: https://orcid.org/0000-0002-6232-7530
53+
keywords:
54+
- cran
55+
- r
56+
- reproducibility
57+
- reproducible-research
58+
- rstats
59+
references:
60+
- type: software
61+
title: knitr
62+
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
63+
notes: Suggests
64+
url: https://yihui.org/knitr/
65+
repository: https://CRAN.R-project.org/package=knitr
66+
authors:
67+
- family-names: Xie
68+
given-names: Yihui
69+
70+
orcid: https://orcid.org/0000-0003-0645-5666
71+
year: '2025'
72+
doi: 10.32614/CRAN.package.knitr
73+
- type: software
74+
title: rmarkdown
75+
abstract: 'rmarkdown: Dynamic Documents for R'
76+
notes: Suggests
77+
url: https://pkgs.rstudio.com/rmarkdown/
78+
repository: https://CRAN.R-project.org/package=rmarkdown
79+
authors:
80+
- family-names: Allaire
81+
given-names: JJ
82+
83+
- family-names: Xie
84+
given-names: Yihui
85+
86+
orcid: https://orcid.org/0000-0003-0645-5666
87+
- family-names: Dervieux
88+
given-names: Christophe
89+
90+
orcid: https://orcid.org/0000-0003-4474-2498
91+
- family-names: McPherson
92+
given-names: Jonathan
93+
94+
- family-names: Luraschi
95+
given-names: Javier
96+
- family-names: Ushey
97+
given-names: Kevin
98+
99+
- family-names: Atkins
100+
given-names: Aron
101+
102+
- family-names: Wickham
103+
given-names: Hadley
104+
105+
- family-names: Cheng
106+
given-names: Joe
107+
108+
- family-names: Chang
109+
given-names: Winston
110+
111+
- family-names: Iannone
112+
given-names: Richard
113+
114+
orcid: https://orcid.org/0000-0003-3925-190X
115+
year: '2025'
116+
doi: 10.32614/CRAN.package.rmarkdown
117+
- type: software
118+
title: testthat
119+
abstract: 'testthat: Unit Testing for R'
120+
notes: Suggests
121+
url: https://testthat.r-lib.org
122+
repository: https://CRAN.R-project.org/package=testthat
123+
authors:
124+
- family-names: Wickham
125+
given-names: Hadley
126+
127+
year: '2025'
128+
doi: 10.32614/CRAN.package.testthat
129+
version: '>= 3.0.0'
130+
- type: software
131+
title: parsedate
132+
abstract: 'parsedate: Recognize and Parse Dates in Various Formats, Including All
133+
ISO 8601 Formats'
134+
notes: Imports
135+
url: https://github.com/gaborcsardi/parsedate
136+
repository: https://CRAN.R-project.org/package=parsedate
137+
authors:
138+
- family-names: Csárdi
139+
given-names: Gábor
140+
141+
- family-names: Torvalds
142+
given-names: Linus
143+
year: '2025'
144+
doi: 10.32614/CRAN.package.parsedate
145+
- type: software
146+
title: fastmap
147+
abstract: 'fastmap: Fast Data Structures'
148+
notes: Imports
149+
url: https://r-lib.github.io/fastmap/
150+
repository: https://CRAN.R-project.org/package=fastmap
151+
authors:
152+
- family-names: Chang
153+
given-names: Winston
154+
155+
year: '2025'
156+
doi: 10.32614/CRAN.package.fastmap
157+
- type: software
158+
title: jsonlite
159+
abstract: 'jsonlite: A Simple and Robust JSON Parser and Generator for R'
160+
notes: Imports
161+
url: https://jeroen.r-universe.dev/jsonlite
162+
repository: https://CRAN.R-project.org/package=jsonlite
163+
authors:
164+
- family-names: Ooms
165+
given-names: Jeroen
166+
167+
orcid: https://orcid.org/0000-0002-4035-0289
168+
year: '2025'
169+
doi: 10.32614/CRAN.package.jsonlite
170+
- type: software
171+
title: memoise
172+
abstract: 'memoise: ''Memoisation'' of Functions'
173+
notes: Imports
174+
url: https://memoise.r-lib.org
175+
repository: https://CRAN.R-project.org/package=memoise
176+
authors:
177+
- family-names: Wickham
178+
given-names: Hadley
179+
180+
- family-names: Hester
181+
given-names: Jim
182+
- family-names: Chang
183+
given-names: Winston
184+
185+
- family-names: Müller
186+
given-names: Kirill
187+
188+
- family-names: Cook
189+
given-names: Daniel
190+
191+
year: '2025'
192+
doi: 10.32614/CRAN.package.memoise
193+
- type: software
194+
title: remotes
195+
abstract: 'remotes: R Package Installation from Remote Repositories, Including ''GitHub'''
196+
notes: Imports
197+
url: https://remotes.r-lib.org
198+
repository: https://CRAN.R-project.org/package=remotes
199+
authors:
200+
- family-names: Csárdi
201+
given-names: Gábor
202+
203+
- family-names: Hester
204+
given-names: Jim
205+
- family-names: Wickham
206+
given-names: Hadley
207+
- family-names: Chang
208+
given-names: Winston
209+
- family-names: Morgan
210+
given-names: Martin
211+
- family-names: Tenenbaum
212+
given-names: Dan
213+
year: '2025'
214+
doi: 10.32614/CRAN.package.remotes
215+
- type: software
216+
title: utils
217+
abstract: 'R: A Language and Environment for Statistical Computing'
218+
notes: Imports
219+
authors:
220+
- name: R Core Team
221+
institution:
222+
name: R Foundation for Statistical Computing
223+
address: Vienna, Austria
224+
year: '2025'
225+
- type: software
226+
title: httr
227+
abstract: 'httr: Tools for Working with URLs and HTTP'
228+
notes: Imports
229+
url: https://httr.r-lib.org/
230+
repository: https://CRAN.R-project.org/package=httr
231+
authors:
232+
- family-names: Wickham
233+
given-names: Hadley
234+
235+
year: '2025'
236+
doi: 10.32614/CRAN.package.httr
237+
- type: software
238+
title: vctrs
239+
abstract: 'vctrs: Vector Helpers'
240+
notes: Imports
241+
url: https://vctrs.r-lib.org/
242+
repository: https://CRAN.R-project.org/package=vctrs
243+
authors:
244+
- family-names: Wickham
245+
given-names: Hadley
246+
247+
- family-names: Henry
248+
given-names: Lionel
249+
250+
- family-names: Vaughan
251+
given-names: Davis
252+
253+
year: '2025'
254+
doi: 10.32614/CRAN.package.vctrs
255+
- type: software
256+
title: renv
257+
abstract: 'renv: Project Environments'
258+
notes: Imports
259+
url: https://rstudio.github.io/renv/
260+
repository: https://CRAN.R-project.org/package=renv
261+
authors:
262+
- family-names: Ushey
263+
given-names: Kevin
264+
265+
orcid: https://orcid.org/0000-0003-2880-7407
266+
- family-names: Wickham
267+
given-names: Hadley
268+
269+
orcid: https://orcid.org/0000-0003-4757-117X
270+
year: '2025'
271+
doi: 10.32614/CRAN.package.renv
272+
- type: software
273+
title: here
274+
abstract: 'here: A Simpler Way to Find Your Files'
275+
notes: Imports
276+
url: https://here.r-lib.org/
277+
repository: https://CRAN.R-project.org/package=here
278+
authors:
279+
- family-names: Müller
280+
given-names: Kirill
281+
282+
orcid: https://orcid.org/0000-0002-1416-3412
283+
year: '2025'
284+
doi: 10.32614/CRAN.package.here
285+
- type: software
286+
title: lifecycle
287+
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
288+
notes: Imports
289+
url: https://lifecycle.r-lib.org/
290+
repository: https://CRAN.R-project.org/package=lifecycle
291+
authors:
292+
- family-names: Henry
293+
given-names: Lionel
294+
295+
- family-names: Wickham
296+
given-names: Hadley
297+
298+
orcid: https://orcid.org/0000-0003-4757-117X
299+
year: '2025'
300+
doi: 10.32614/CRAN.package.lifecycle
301+
- type: software
302+
title: 'R: A Language and Environment for Statistical Computing'
303+
notes: Depends
304+
url: https://www.R-project.org/
305+
authors:
306+
- name: R Core Team
307+
institution:
308+
name: R Foundation for Statistical Computing
309+
address: Vienna, Austria
310+
year: '2025'
311+
version: '>= 3.5.0'
312+

0 commit comments

Comments
 (0)