Releases: ropensci/gistr
Releases · ropensci/gistr
gistr v0.9.0
gistr v0.5.0
gistr v0.4.2
NEW FEATURES
gist()
gains a parameterrevision
to request a specific revision of a gists. note that the returned brief print out of the gist in your console may not vary from revision to revision, but the underlying data has the correct data for the revision (#71)
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 v0.4.0
gistr v0.3.6
gistr v0.3.4
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. (57f13a7)
BUG FIXES
- Fix to
tabl()
to give back cleaner data output, returning main
metadata for each gist in a single data.frame, then forks and
history in separate data.frame's if they exist. Makes for easier
understanding and manipulation downstream. (#54)
gistr 0.3.0
NEW FEATURES
- Gained new function
gistr_save()
to save gist files to disk easily and optionally open them in your editor/R GUI (#47). In addition, files saved to a directory, with the dir named by the gist id (#49) gist()
now accepts either a gist ID or full or partial URL's for a gist (#48)
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
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 parameterimgur_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
theraw_url
, or for larger than 10 MB to thegit_pull_url
. (#26)