Changelog
Source:NEWS.md
gistr 0.5.0
CRAN release: 2020-01-09
BUG FIXES
- fix to
gist_create()
: fail if bothfiles
andcode
params areNULL
(the user should pass something in) (#72) thanks @maelle
gistr 0.4.2
CRAN release: 2018-06-28
MINOR IMPROVEMENTS
- affecting all functions that create data
gist_create()
,gist_create_git()
,gist_create_obj()
,update()
,delete()
: GitHub for good reason gives a 404 when there are authentication issues. A common problem is that a user has incorrect or missing scopes. We now attempt to detect this scope problem specifically and throw a message when that happens (#70) - toggle whether we index to a git path with
@
vs.$
depending ongit2r
package version; for an upcoming version ofgit2r
(#74)
gistr 0.4.0
CRAN release: 2017-04-20
MINOR IMPROVEMENTS
- Change all
dplyr::rbind_all
instances todplyr::bind_rows
(#69)
gistr 0.3.4
CRAN release: 2015-10-10
NEW FEATURES
- Gained new function
gist_create_git()
- creates gists usinggit
instead of the GitHub Gists HTTP API. Uses the packagegit2r
internally to do thegit
things. (#50) This function has been around a while, but not in the CRAN version, so a few other fixes of note in case you’re interested: (#56) (#57) (#58) (#59) (#61)
MINOR IMPROVEMENTS
- Added new manual file
?create_gists
with details of the three different ways to create gists, how they differ, and why there are three different functions to create a gist. (57f13a711fb7a1514caee6a858d4cda31d614e6f)
gistr 0.3.0
CRAN release: 2015-07-03
MINOR IMPROVEMENTS
- Can now optionally use
rmarkdown::render()
withgist_create()
(#52) - Explicitly import non-base R pkg functions, so importing from
utils
,methods
, andstats
(#53) - Can now toggle use of
rmarkdown
package with a parameter ingist_create()
(#52) - Better error messages from the GitHub API (#42)
BUG FIXES
- Fixed problem with
httr
v1
where empty list not allowed to pass to thequery
parameter inGET
(#51)
gistr 0.2.0
CRAN release: 2015-05-01
NEW FEATURES
-
gistr_create()
can now optionally include source file ifknit=TRUE
using the new parameterinclude_source
(#19) - new function
gist_create_obj()
to create a gist directly from a R object, like numeric, list, character, data.frame, matrix (#36) (#44) - new function
gist_map()
to open a full page map in your default browser of a gist after gist creation (#23) - new function
tabl()
(weird function name to avoid thetable
function in base R). This function goal is to make it easier to play with gist data. Data given back from the GitHub API is great, but is in nested list format (after conversion from JSON) - so is rather hard to manipulate.tabl()
makes a data.frame from output ofgist()
,gists()
,as.gist()
, andcommits()
(#25)
MINOR IMPROVEMENTS
-
gistr_create()
works with.Rnw
files, and example.Rnw
file included in the package. (#20) - Added ability in
gist_create()
to optionally include the source file passed into the function call whenknit=TRUE
(#19) - Added ability to inject imgur hooks into a knitted document so that images can be rendered in a gist automatically. The GitHub HTTP API doesn’t allow binary uploads (e.g., images), so the parameter
imgur_inject
uploads your images to imgur and embeds links to the images in your document. (#33) - Improved information on truncation. If you request a gist that is larger than 1MB, the returned object says it’s truncated. You can download the whole thing using the
raw_url
, or for larger than 10 MB to thegit_pull_url
. (#26)
BUG FIXES
- Fixed unicode problem on Windows (#37)
- Improved error catching (#28)
-
gist_create()
now works for an R script, didn’t before (#29)