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
3
4
5
6
7
8
9
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')

yonicd/vcs documentation built on July 20, 2020, 8:43 a.m.