New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to choose a file in `source_gist()` #1172

Merged
merged 5 commits into from Jun 2, 2016

Conversation

Projects
None yet
4 participants
@ateucher
Contributor

ateucher commented May 5, 2016

This adds an argument filename to the source_gist() function so that a user can specify a particular file in a gist that has more than one (currently it will source the first .r file in a gist).

e.g.:

source_gist("gist.github.com/ateucher/0689a1460a0ac136d3b69c371de3a57e", filename = "hi.r")
source_gist("gist.github.com/ateucher/0689a1460a0ac136d3b69c371de3a57e", filename = "hello.r")
@codecov-io

This comment has been minimized.

codecov-io commented May 5, 2016

Current coverage is 41.81%

Merging #1172 into master will increase coverage by +<.01%

@@             master      #1172   diff @@
==========================================
  Files            86         86          
  Lines          4464       4475    +11   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1863       1871     +8   
- Misses         2601       2604     +3   
  Partials          0          0          
  1. File R/github.R (not in diff) was modified. more
    • Misses -8
    • Partials 0
    • Hits +8

Powered by Codecov. Last updated by c19c6f6...942af04

@jimhester jimhester added this to the 1.11.2 milestone May 31, 2016

@hadley hadley merged commit 2b22e4c into r-lib:master Jun 2, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ateucher

This comment has been minimized.

Contributor

ateucher commented Jun 2, 2016

Awesome, thanks!

@ateucher ateucher deleted the ateucher:choose-file-source-gist branch Jun 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment