source_remote: Source File on a Remote Repository

Description Usage Arguments Examples

View source: R/source_remote.R

Description

Evaluate script directly from remote repository including reading data and nested sources.

Usage

1
2
source_remote(repo, subdir, r.file, tokens = NULL, branch = "master",
  vcs = "github", flag = TRUE)

Arguments

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

Examples

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')

metrumresearchgroup/vcs documentation built on July 21, 2018, 6:17 a.m.