@@ -81,8 +81,8 @@ rate_limit()
81
81
82
82
```
83
83
#> Rate limit: 5000
84
- #> Remaining: 4937
85
- #> Resets in: 50 minutes
84
+ #> Remaining: 4782
85
+ #> Resets in: 32 minutes
86
86
```
87
87
88
88
@@ -97,20 +97,22 @@ gists(per_page = 2)
97
97
98
98
```
99
99
#> [[1]]
100
- #> <gist>f6a41fd1356de2b8931d
101
- #> URL: https://gist.github.com/f6a41fd1356de2b8931d
102
- #> Description: Bootstrap Customizer Config
100
+ #> <gist>0d0236018fd2e18f76eb
101
+ #> URL: https://gist.github.com/0d0236018fd2e18f76eb
102
+ #> Description:
103
103
#> Public: TRUE
104
- #> Created/Edited: 2015-01-23T16:27:46Z / 2015-01-23T16:27:46Z
105
- #> Files: config.json
104
+ #> Created/Edited: 2015-05-01T04:10:13Z / 2015-05-01T04:10:13Z
105
+ #> Files: concurrency-in-go.md
106
+ #> Truncated?: FALSE
106
107
#>
107
108
#> [[2]]
108
- #> <gist>2c0595baa786d8add54e
109
- #> URL: https://gist.github.com/2c0595baa786d8add54e
110
- #> Description: Solution to level 1 in Untrusted: http://alex.nisnevich.com/untrusted/
109
+ #> <gist>cc1a45d62d544b2fbb68
110
+ #> URL: https://gist.github.com/cc1a45d62d544b2fbb68
111
+ #> Description:
111
112
#> Public: TRUE
112
- #> Created/Edited: 2015-01-23T16:27:43Z / 2015-01-23T16:27:43Z
113
- #> Files: untrusted-lvl1-solution.js
113
+ #> Created/Edited: 2015-05-01T04:10:13Z / 2015-05-01T04:10:15Z
114
+ #> Files: alm.md, code.R
115
+ #> Truncated?: FALSE, FALSE
114
116
```
115
117
116
118
Since a certain date/time
@@ -122,20 +124,22 @@ gists(since='2014-05-26T00:00:00Z', per_page = 2)
122
124
123
125
```
124
126
#> [[1]]
125
- #> <gist>f6a41fd1356de2b8931d
126
- #> URL: https://gist.github.com/f6a41fd1356de2b8931d
127
- #> Description: Bootstrap Customizer Config
127
+ #> <gist>0d0236018fd2e18f76eb
128
+ #> URL: https://gist.github.com/0d0236018fd2e18f76eb
129
+ #> Description:
128
130
#> Public: TRUE
129
- #> Created/Edited: 2015-01-23T16:27:46Z / 2015-01-23T16:27:46Z
130
- #> Files: config.json
131
+ #> Created/Edited: 2015-05-01T04:10:13Z / 2015-05-01T04:10:13Z
132
+ #> Files: concurrency-in-go.md
133
+ #> Truncated?: FALSE
131
134
#>
132
135
#> [[2]]
133
- #> <gist>2c0595baa786d8add54e
134
- #> URL: https://gist.github.com/2c0595baa786d8add54e
135
- #> Description: Solution to level 1 in Untrusted: http://alex.nisnevich.com/untrusted/
136
+ #> <gist>cc1a45d62d544b2fbb68
137
+ #> URL: https://gist.github.com/cc1a45d62d544b2fbb68
138
+ #> Description:
136
139
#> Public: TRUE
137
- #> Created/Edited: 2015-01-23T16:27:43Z / 2015-01-23T16:27:43Z
138
- #> Files: untrusted-lvl1-solution.js
140
+ #> Created/Edited: 2015-05-01T04:10:13Z / 2015-05-01T04:10:15Z
141
+ #> Files: alm.md, code.R
142
+ #> Truncated?: FALSE, FALSE
139
143
```
140
144
141
145
Request different types of gists, one of public, minepublic, mineall, or starred.
@@ -147,20 +151,22 @@ gists('minepublic', per_page = 2)
147
151
148
152
```
149
153
#> [[1]]
150
- #> <gist>485fc353504f902194a8
151
- #> URL: https://gist.github.com/485fc353504f902194a8
152
- #> Description: gist gist gist
154
+ #> <gist>cc1a45d62d544b2fbb68
155
+ #> URL: https://gist.github.com/cc1a45d62d544b2fbb68
156
+ #> Description:
153
157
#> Public: TRUE
154
- #> Created/Edited: 2015-01-23T16:24:50Z / 2015-01-23T16:24:50Z
155
- #> Files: stuff.md
158
+ #> Created/Edited: 2015-05-01T04:10:13Z / 2015-05-01T04:10:15Z
159
+ #> Files: alm.md, code.R
160
+ #> Truncated?: FALSE, FALSE
156
161
#>
157
162
#> [[2]]
158
- #> <gist>d756e9c7ceebd154ec26
159
- #> URL: https://gist.github.com/d756e9c7ceebd154ec26
160
- #> Description: gist gist gist
163
+ #> <gist>a72d9b3b59844f82e87b
164
+ #> URL: https://gist.github.com/a72d9b3b59844f82e87b
165
+ #> Description: a new cool gist
161
166
#> Public: TRUE
162
- #> Created/Edited: 2015-01-23T13:48:18Z / 2015-01-23T13:48:19Z
163
- #> Files: stuff.md, zoo.json
167
+ #> Created/Edited: 2015-05-01T04:10:12Z / 2015-05-01T04:10:12Z
168
+ #> Files: stuff.md
169
+ #> Truncated?: FALSE
164
170
```
165
171
166
172
@@ -178,6 +184,7 @@ gist(id = 'f1403260eb92f5dfa7e1')
178
184
#> Public: TRUE
179
185
#> Created/Edited: 2014-10-15T20:40:12Z / 2014-10-15T21:54:29Z
180
186
#> Files: bitly_r.md
187
+ #> Truncated?: FALSE
181
188
```
182
189
183
190
## Create gist
@@ -202,12 +209,13 @@ gist_create(files=stuffpath, description='a new cool gist', browse = FALSE)
202
209
```
203
210
204
211
```
205
- #> <gist>23000a2ff523bdf6c438
206
- #> URL: https://gist.github.com/23000a2ff523bdf6c438
212
+ #> <gist>ac19258b9bd255a09981
213
+ #> URL: https://gist.github.com/ac19258b9bd255a09981
207
214
#> Description: a new cool gist
208
215
#> Public: TRUE
209
- #> Created/Edited: 2015-01-23T16:27:53Z / 2015-01-23T16:27:53Z
216
+ #> Created/Edited: 2015-05-01T04:10:34Z / 2015-05-01T04:10:34Z
210
217
#> Files: stuff.md
218
+ #> Truncated?: FALSE
211
219
```
212
220
213
221
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.
@@ -224,12 +232,13 @@ numbers
224
232
```
225
233
226
234
```
227
- #> <gist>04ee8c7a0491d3317617
228
- #> URL: https://gist.github.com/04ee8c7a0491d3317617
235
+ #> <gist>d5f968cef4c80e7ea9c3
236
+ #> URL: https://gist.github.com/d5f968cef4c80e7ea9c3
229
237
#> Description:
230
238
#> Public: TRUE
231
- #> Created/Edited: 2015-01-23T16:27:54Z / 2015-01-23T16:27:54Z
239
+ #> Created/Edited: 2015-05-01T04:10:34Z / 2015-05-01T04:10:34Z
232
240
#> Files: code.R
241
+ #> Truncated?: FALSE
233
242
```
234
243
235
244
You can also knit an input file before posting as a gist:
@@ -273,12 +282,13 @@ run(file, knitopts = list(quiet=TRUE)) %>% gist_create(browse = FALSE)
273
282
```
274
283
275
284
```
276
- #> <gist>541490440515c66168bb
277
- #> URL: https://gist.github.com/541490440515c66168bb
285
+ #> <gist>4febc43f823a3ecd6f7e
286
+ #> URL: https://gist.github.com/4febc43f823a3ecd6f7e
278
287
#> Description:
279
288
#> Public: TRUE
280
- #> Created/Edited: 2015-01-23T16:27:54Z / 2015-01-23T16:27:54Z
289
+ #> Created/Edited: 2015-05-01T04:10:34Z / 2015-05-01T04:10:34Z
281
290
#> Files: stuff.md
291
+ #> Truncated?: FALSE
282
292
```
283
293
284
294
@@ -310,10 +320,10 @@ gists()[[1]] %>% commits()
310
320
```
311
321
#> [[1]]
312
322
#> <commit>
313
- #> Version: 103641c54a3382b3a6f7089376bd420082c2d658
314
- #> User: invalid-email-address
315
- #> Commited: 2015-01-23T16:27:54Z
316
- #> Commits [total, additions, deletions]: [35,35 ,0]
323
+ #> Version: 9eb068aef0f299cd011fc7b5db84237ce5b86e19
324
+ #> User: sckott
325
+ #> Commited: 2015-05-01T04:10:34Z
326
+ #> Commits [total, additions, deletions]: [5,5 ,0]
317
327
```
318
328
319
329
## Star a gist
@@ -332,6 +342,7 @@ gist('7ddb9810fc99c84c65ec') %>% star()
332
342
#> Public: TRUE
333
343
#> Created/Edited: 2014-06-27T17:50:37Z / 2014-06-27T17:50:37Z
334
344
#> Files: code.R, manifest.yml, rrt_manifest.yml
345
+ #> Truncated?: FALSE, FALSE, FALSE
335
346
```
336
347
337
348
Unstar
@@ -348,6 +359,7 @@ gist('7ddb9810fc99c84c65ec') %>% unstar()
348
359
#> Public: TRUE
349
360
#> Created/Edited: 2014-06-27T17:50:37Z / 2014-06-27T17:50:37Z
350
361
#> Files: code.R, manifest.yml, rrt_manifest.yml
362
+ #> Truncated?: FALSE, FALSE, FALSE
351
363
```
352
364
353
365
## Update a gist
@@ -358,7 +370,7 @@ First, path to file
358
370
359
371
360
372
``` r
361
- file <- system.file(" examples" , " alm_othersources .md" , package = " gistr" )
373
+ file <- system.file(" examples" , " alm .md" , package = " gistr" )
362
374
```
363
375
364
376
@@ -369,32 +381,24 @@ gists(what = "minepublic")[[1]] %>%
369
381
```
370
382
371
383
```
372
- #> <gist>04ee8c7a0491d3317617
373
- #> URL: https://gist.github.com/04ee8c7a0491d3317617
384
+ #> <gist>d5f968cef4c80e7ea9c3
385
+ #> URL: https://gist.github.com/d5f968cef4c80e7ea9c3
374
386
#> Description:
375
387
#> Public: TRUE
376
- #> Created/Edited: 2015-01-23T16:27:54Z / 2015-01-23T16:27:56Z
377
- #> Files: alm_othersources.md, code.R
388
+ #> Created/Edited: 2015-05-01T04:10:34Z / 2015-05-01T04:10:36Z
389
+ #> Files: alm.md, code.R
390
+ #> Truncated?: FALSE, FALSE
378
391
```
379
392
380
393
Delete files
381
394
382
395
383
396
``` r
384
- gists(what = " minepublic" )[[1 ]] % > %
385
- delete_files(file ) %> %
397
+ gists(what = " minepublic" )[[1 ]]
398
+ delete_files(" code.R " ) %> %
386
399
update()
387
400
```
388
401
389
- ```
390
- #> <gist>04ee8c7a0491d3317617
391
- #> URL: https://gist.github.com/04ee8c7a0491d3317617
392
- #> Description:
393
- #> Public: TRUE
394
- #> Created/Edited: 2015-01-23T16:27:54Z / 2015-01-23T16:27:57Z
395
- #> Files: code.R
396
- ```
397
-
398
402
## Open a gist in your default browser
399
403
400
404
@@ -412,7 +416,7 @@ gists()[[1]] %>% embed()
412
416
```
413
417
414
418
```
415
- #> [1] "<script src=\"https://gist.github.com/SiestaMadokaist/6252116110eaddeced11 .js\"></script>"
419
+ #> [1] "<script src=\"https://gist.github.com/sckott/d5f968cef4c80e7ea9c3 .js\"></script>"
416
420
```
417
421
418
422
### List forks
@@ -430,16 +434,18 @@ gist(id='1642874') %>% forks(per_page=2)
430
434
#> URL: https://gist.github.com/1642989
431
435
#> Description: Spline Transition
432
436
#> Public: TRUE
433
- #> Created/Edited: 2012-01-19T21:45:20Z / 2014-12-10T03:25:19Z
437
+ #> Created/Edited: 2012-01-19T21:45:20Z / 2015-04-15T10:16:23Z
434
438
#> Files:
439
+ #> Truncated?:
435
440
#>
436
441
#> [[2]]
437
442
#> <gist>1643051
438
443
#> URL: https://gist.github.com/1643051
439
444
#> Description: Line Transition (Broken)
440
445
#> Public: TRUE
441
- #> Created/Edited: 2012-01-19T21:51:30Z / 2015-01-15T16:50:51Z
442
- #> Files:
446
+ #> Created/Edited: 2012-01-19T21:51:30Z / 2015-04-15T10:16:33Z
447
+ #> Files:
448
+ #> Truncated?:
443
449
```
444
450
445
451
## Fork a gist
@@ -453,12 +459,13 @@ g <- gists()
453
459
```
454
460
455
461
```
456
- #> <gist>f1f863e026f65328bbf7
457
- #> URL: https://gist.github.com/f1f863e026f65328bbf7
462
+ #> <gist>198a3d98aefe5432cedd
463
+ #> URL: https://gist.github.com/198a3d98aefe5432cedd
458
464
#> Description:
459
465
#> Public: TRUE
460
- #> Created/Edited: 2015-01-23T16:27:58Z / 2015-01-23T16:27:58Z
461
- #> Files: log
466
+ #> Created/Edited: 2015-05-01T04:10:37Z / 2015-05-01T04:10:37Z
467
+ #> Files: Servidor.js
468
+ #> Truncated?: FALSE
462
469
```
463
470
464
471
0 commit comments