.R
oder .Rd
)
from R forge repositorycopySourceFromRForge(PKG, TYPE, FILENAME, PROJECT, from, to,
offset.before = 0, offset.after = 0,
fromRForge = getSweaveListingOption("fromRForge"),
base.url = getSweaveListingOption("base.url"), ... )
grep
, hence as regular expression);
if numeric, the starting line number, if missing we begin with the first line
of the filegrep
, hence as regular expression);
if numeric, the ending line number, if missing we end with the last line
of the filelink[base]{grep}
invisible()
.from
, to
may be
from
, to
; it uses grep
; hence
regular expressions may be used which involves masking
of (,{,\, etc. as described in the cited reference;
copySourceFromRForge("distr","R","AllClasses.R","distr", from =2, to =3,
offset.after=2)
copySourceFromRForge("distr","R","AllClasses.R","distr", from ="setClass",
to ="\\}")
Run the code above in your browser using DataLab