Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit f4eaec4

Browse files
committed
updated readme to have instructions to install from cran
1 parent 09ef645 commit f4eaec4

File tree

2 files changed

+69
-56
lines changed

2 files changed

+69
-56
lines changed

README.Rmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ knitr::opts_chunk$set(
2424

2525
### Install
2626

27+
Stable version from CRAN
28+
29+
```{r eval=FALSE}
30+
install.packages("gistr")
31+
```
32+
33+
Or dev version from GitHub.
34+
2735
```{r eval=FALSE}
2836
devtools::install_github("ropensci/gistr")
2937
```

README.md

Lines changed: 61 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ gistr
1717

1818
### Install
1919

20+
Stable version from CRAN
21+
22+
23+
```r
24+
install.packages("gistr")
25+
```
26+
27+
Or dev version from GitHub.
28+
2029

2130
```r
2231
devtools::install_github("ropensci/gistr")
@@ -89,20 +98,20 @@ Limiting to a few results here to keep it brief
8998
```r
9099
gists(per_page = 2)
91100
#> [[1]]
92-
#> <gist>9b626473dc4a41005427
93-
#> URL: https://gist.github.com/9b626473dc4a41005427
94-
#> Description:
101+
#> <gist>933a35c92f544dbfa5cc
102+
#> URL: https://gist.github.com/933a35c92f544dbfa5cc
103+
#> Description: Bootstrap Customizer Config
95104
#> Public: TRUE
96-
#> Created/Edited: 2015-01-26T18:15:12Z / 2015-01-26T18:15:13Z
97-
#> Files: html5
105+
#> Created/Edited: 2015-02-08T02:58:19Z / 2015-02-08T02:58:19Z
106+
#> Files: config.json
98107
#>
99108
#> [[2]]
100-
#> <gist>7a3b3bbfa721a3b35398
101-
#> URL: https://gist.github.com/7a3b3bbfa721a3b35398
102-
#> Description: test
109+
#> <gist>77d4d059c84d0d0fcb08
110+
#> URL: https://gist.github.com/77d4d059c84d0d0fcb08
111+
#> Description:
103112
#> Public: TRUE
104-
#> Created/Edited: 2015-01-26T18:15:03Z / 2015-01-26T18:15:03Z
105-
#> Files: config.json, inlet.js, us500.csv
113+
#> Created/Edited: 2015-02-08T02:58:02Z / 2015-02-08T02:58:03Z
114+
#> Files: gistfile1.txt
106115
```
107116

108117
Since a certain date/time
@@ -111,20 +120,20 @@ Since a certain date/time
111120
```r
112121
gists(since='2014-05-26T00:00:00Z', per_page = 2)
113122
#> [[1]]
114-
#> <gist>9b626473dc4a41005427
115-
#> URL: https://gist.github.com/9b626473dc4a41005427
116-
#> Description:
123+
#> <gist>933a35c92f544dbfa5cc
124+
#> URL: https://gist.github.com/933a35c92f544dbfa5cc
125+
#> Description: Bootstrap Customizer Config
117126
#> Public: TRUE
118-
#> Created/Edited: 2015-01-26T18:15:12Z / 2015-01-26T18:15:13Z
119-
#> Files: html5
127+
#> Created/Edited: 2015-02-08T02:58:19Z / 2015-02-08T02:58:19Z
128+
#> Files: config.json
120129
#>
121130
#> [[2]]
122-
#> <gist>7a3b3bbfa721a3b35398
123-
#> URL: https://gist.github.com/7a3b3bbfa721a3b35398
124-
#> Description: test
131+
#> <gist>77d4d059c84d0d0fcb08
132+
#> URL: https://gist.github.com/77d4d059c84d0d0fcb08
133+
#> Description:
125134
#> Public: TRUE
126-
#> Created/Edited: 2015-01-26T18:15:03Z / 2015-01-26T18:15:03Z
127-
#> Files: config.json, inlet.js, us500.csv
135+
#> Created/Edited: 2015-02-08T02:58:02Z / 2015-02-08T02:58:03Z
136+
#> Files: gistfile1.txt
128137
```
129138

130139
Request different types of gists, one of public, minepublic, mineall, or starred.
@@ -133,20 +142,20 @@ Request different types of gists, one of public, minepublic, mineall, or starred
133142
```r
134143
gists('minepublic', per_page = 2)
135144
#> [[1]]
136-
#> <gist>431989eb78b73184697c
137-
#> URL: https://gist.github.com/431989eb78b73184697c
138-
#> Description: gist gist gist
145+
#> <gist>8c7b214336868e2829d5
146+
#> URL: https://gist.github.com/8c7b214336868e2829d5
147+
#> Description:
139148
#> Public: TRUE
140-
#> Created/Edited: 2015-01-26T11:51:48Z / 2015-01-26T11:51:48Z
141-
#> Files: stuff.md
149+
#> Created/Edited: 2015-02-07T02:45:15Z / 2015-02-07T02:48:52Z
150+
#> Files: alm_citations_time.md
142151
#>
143152
#> [[2]]
144-
#> <gist>b03f8efa868ac3271a41
145-
#> URL: https://gist.github.com/b03f8efa868ac3271a41
146-
#> Description: gist gist gist
153+
#> <gist>ef89977ff9227cd4d193
154+
#> URL: https://gist.github.com/ef89977ff9227cd4d193
155+
#> Description:
147156
#> Public: TRUE
148-
#> Created/Edited: 2015-01-25T11:50:29Z / 2015-01-25T11:50:29Z
149-
#> Files: stuff.md
157+
#> Created/Edited: 2015-02-06T21:45:06Z / 2015-02-06T21:45:06Z
158+
#> Files: rnoaa_eg1.md
150159
```
151160

152161

@@ -175,12 +184,8 @@ gist_create(files="~/stuff.md", description='a new cool gist')
175184

176185
```r
177186
gist_create(files="~/stuff.md", description='a new cool gist', browse = FALSE)
178-
#> <gist>00759084c3af09d6c54f
179-
#> URL: https://gist.github.com/00759084c3af09d6c54f
180-
#> Description: a new cool gist
181-
#> Public: TRUE
182-
#> Created/Edited: 2015-01-26T18:15:23Z / 2015-01-26T18:15:23Z
183-
#> Files: stuff.md
187+
#> Error: These don't exist or can't be found:
188+
#> ~/stuff.md
184189
```
185190

186191
Or, wrap `gist_create()` around some code in your R session/IDE, like so, with just the function name, and a `{'` at the start and a `}'` at the end.
@@ -205,11 +210,11 @@ numbers
205210
206211
[1] 0.3229318 0.5933054 0.7778408 0.3898947 0.1309717 0.7501378 0.3206379 0.3379005
207212
'}, browse=FALSE)
208-
#> <gist>2f86521142c605fd4740
209-
#> URL: https://gist.github.com/2f86521142c605fd4740
213+
#> <gist>aee3cf8b3a918073dfc7
214+
#> URL: https://gist.github.com/aee3cf8b3a918073dfc7
210215
#> Description:
211216
#> Public: TRUE
212-
#> Created/Edited: 2015-01-26T18:15:23Z / 2015-01-26T18:15:23Z
217+
#> Created/Edited: 2015-02-08T02:58:50Z / 2015-02-08T02:58:50Z
213218
#> Files: code.R
214219
```
215220

@@ -253,11 +258,11 @@ knit a local file
253258
```r
254259
file <- system.file("examples", "stuff.Rmd", package = "gistr")
255260
run(file, knitopts = list(quiet=TRUE)) %>% gist_create(browse = FALSE)
256-
#> <gist>d3352b5062c442199483
257-
#> URL: https://gist.github.com/d3352b5062c442199483
261+
#> <gist>ab8d244a2a0ba9d76381
262+
#> URL: https://gist.github.com/ab8d244a2a0ba9d76381
258263
#> Description:
259264
#> Public: TRUE
260-
#> Created/Edited: 2015-01-26T18:15:24Z / 2015-01-26T18:15:24Z
265+
#> Created/Edited: 2015-02-08T02:58:50Z / 2015-02-08T02:58:50Z
261266
#> Files: stuff.md
262267
```
263268

@@ -287,9 +292,9 @@ gists('minepublic')[[1]] %>% run() %>% update()
287292
gists()[[1]] %>% commits()
288293
#> [[1]]
289294
#> <commit>
290-
#> Version: d2743f0c6b150b90e9f91ffcb2b9c96be5989d5b
295+
#> Version: 065fc88eceb1daab38730f8ed9ccefb63d616df5
291296
#> User: sckott
292-
#> Commited: 2015-01-26T18:15:23Z
297+
#> Commited: 2015-02-08T02:58:50Z
293298
#> Commits [total, additions, deletions]: [5,5,0]
294299
```
295300

@@ -330,11 +335,11 @@ Add files
330335
gists(what = "minepublic")[[1]] %>%
331336
add_files("~/alm_othersources.md") %>%
332337
update()
333-
#> <gist>2f86521142c605fd4740
334-
#> URL: https://gist.github.com/2f86521142c605fd4740
338+
#> <gist>aee3cf8b3a918073dfc7
339+
#> URL: https://gist.github.com/aee3cf8b3a918073dfc7
335340
#> Description:
336341
#> Public: TRUE
337-
#> Created/Edited: 2015-01-26T18:15:23Z / 2015-01-26T18:15:26Z
342+
#> Created/Edited: 2015-02-08T02:58:50Z / 2015-02-08T02:58:53Z
338343
#> Files: alm_othersources.md, code.R
339344
```
340345

@@ -345,11 +350,11 @@ Delete files
345350
gists(what = "minepublic")[[1]] %>%
346351
delete_files("~/alm_othersources.md") %>%
347352
update()
348-
#> <gist>2f86521142c605fd4740
349-
#> URL: https://gist.github.com/2f86521142c605fd4740
353+
#> <gist>aee3cf8b3a918073dfc7
354+
#> URL: https://gist.github.com/aee3cf8b3a918073dfc7
350355
#> Description:
351356
#> Public: TRUE
352-
#> Created/Edited: 2015-01-26T18:15:23Z / 2015-01-26T18:15:27Z
357+
#> Created/Edited: 2015-02-08T02:58:50Z / 2015-02-08T02:58:53Z
353358
#> Files: code.R
354359
```
355360

@@ -367,7 +372,7 @@ gists()[[1]] %>% browse()
367372

368373
```r
369374
gists()[[1]] %>% embed()
370-
#> [1] "<script src=\"https://gist.github.com//2d8bdd257cc9abb4e7b6.js\"></script>"
375+
#> [1] "<script src=\"https://gist.github.com/sckott/aee3cf8b3a918073dfc7.js\"></script>"
371376
```
372377

373378
### List forks
@@ -402,12 +407,12 @@ Returns a `gist` object
402407
```r
403408
g <- gists()
404409
(forked <- g[[ sample(seq_along(g), 1) ]] %>% fork())
405-
#> <gist>33678ebfc3fc2721eab7
406-
#> URL: https://gist.github.com/33678ebfc3fc2721eab7
407-
#> Description: Bootstrap Customizer Config
410+
#> <gist>217ec02aaee33fec2cbb
411+
#> URL: https://gist.github.com/217ec02aaee33fec2cbb
412+
#> Description: A Python script which is intended to be run as a background process, and listens for + takes action on GPIO button 17, 22, and 23 presses.
408413
#> Public: TRUE
409-
#> Created/Edited: 2015-01-26T18:15:29Z / 2015-01-26T18:15:29Z
410-
#> Files: config.json
414+
#> Created/Edited: 2015-02-08T02:58:55Z / 2015-02-08T02:58:55Z
415+
#> Files: gpio-button-listener
411416
```
412417

413418

0 commit comments

Comments
 (0)