Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

RFunctionGrabber

This simple Cfunction was written quickly to deal with several scripts that contained only function definitions which were supposed to go in separate files. It uses POSIX regex.h to grep all function definitions from an R-script, open a new file with the name of the function and write into this file until a new function definition is encountered. The script currently assumes that all function definitions are written as:

name <- function (

where the number of spaces between all tokens can be variable and the name adheres to the conventions specified by R. Closures are not supported, otherwise this would require writing a full-blown parser.

About

Grab function definitions from R-script

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages