knitr (version 1.16)

read_rforge: Read source code from R-Forge

Description

This function reads source code from the SVN repositories on R-Forge.

Usage

read_rforge(path, project, extra = "")

Arguments

path

relative path to the source script on R-Forge

project

name of the R-Forge project

extra

extra parameters to be passed to the URL (e.g. extra = '&revision=48' to check out the source of revision 48)

Value

A character vector of the source code.

Examples

Run this code
# NOT RUN {
library(knitr)
# }
# NOT RUN {
# relies on r-forge.r-project.org being accessible
read_rforge("rgl/R/axes.R", project = "rgl")
read_rforge("rgl/R/axes.R", project = "rgl", extra = "&revision=519")
# }

Run the code above in your browser using DataCamp Workspace