Skip to content

Commit

Permalink
fix runExample for #44 and add alias viewExample. might need to remov…
Browse files Browse the repository at this point in the history
…e runExample as it conflicts with shiny.
  • Loading branch information
ramnathv committed Apr 26, 2013
1 parent f114714 commit 8a4abf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/publish.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ publish_.rpubs <- function(files, description, ...){
# repo = 'rCharts_polycharts_standalone',
# filename = 'bar_athletes.R'
# )
runExample <- function(repo, username, ref = 'master', filename){
viewExample <- runExample <- function(repo, username, ref = 'master', filename){
require(downloader)
tf <- tempfile(pattern = '*.R')
tf <- tempfile(pattern = '.R')
url <- sprintf('https://raw.github.com/%s/%s/%s/%s',
username, repo, ref, filename)
download(url, tf)
Expand Down

0 comments on commit 8a4abf0

Please sign in to comment.