2/12/2018 Source all R files in a gist!Have you ever wanted so source in multiple files from a github gist? I have too... And devtools::source_gist seemed to be the obvious place to start. For example, I was going to run this code: And I got the following error because the expression is (intentionally) malformed That's not the only problem either. There was another message saying only the first file in the gist was used. So after discovering these two significant issues with devtools::source_gist it seemed best to just create a simple replacement that fit my use-case and needs. YMMV...
First, I decided to make authenticated requests to github for performance and security purposes. This is easy to do with httr::authenticate. Pair that with the nifty password utility package, getPass, and we have a solution! This function is, of course, saved in a gist! enjoy :) https://gist.github.com/cjtexas/6cd6ccff56bc2705324ab4371c93bf83 Now supports image sampling! Check it out on github.
10/10/2017 colourgen R package 0.1.0 releasedSome handy colour palette wrappers made into an R package. check it out on github! |
ArchivesCategories |