Description Usage Arguments Examples
View source: R/source_remote.R
Evaluate script directly from remote repository including reading data and nested sources.
| 1 2 3 4 5 6 7 8 9 | source_remote(
  repo,
  subdir,
  r.file,
  tokens = NULL,
  branch = "master",
  vcs = "github",
  flag = TRUE
)
 | 
| repo | character, username/repo_name | 
| subdir | character, subdirectory of repository | 
| r.file | character, file name to source | 
| tokens | character, vector of functions names that will be have a path appended to them | 
| branch | character, alias of the branch in the repository, Default: 'master' | 
| vcs | character, choose which version control system to search (github, bitbucket), Default: 'github' | 
| flag | boolean, checks to see if the file is a nested file Default: TRUE | 
| 1 2 3 4 | repo='stan-dev/example-models'
subdir='ARM/Ch.10'
r.file='10.4_LackOfOverlapWhenTreat.AssignmentIsUnknown.R'
source_remote(repo,subdir,r.file,tokens='stan')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.