roweb icon indicating copy to clipboard operation
roweb copied to clipboard

Update examples so they run with copy/paste

Open karthik opened this issue 10 years ago • 1 comments

When people visit a tutorial and want to learn a new package, their first instinct is to copy paste example code and see how it works. We should strive to make that as easy as possible and not throw up errors when they do try. Looking at this gistr example:

gists(what = "minepublic")[[1]] %>% # List my public gists, and index 1st
  add_files("~/alm_othersources.md") %>% # Add new file to that gist
  update() # update sends a PATCH command to Gists API to add file to your gist

Users are unlikely to have a file locally called alm_sources.md. Could we update such examples to fully run as is?

e..g.

writeLines("test", con = file("alm_othersources.md"))
...

karthik avatar Jun 30 '15 11:06 karthik

i updated those examples

sckott avatar Jun 30 '15 14:06 sckott