Search found 2 matches
- Wed Aug 29, 2012 9:53 pm
- Forum: General
- Topic: Editing Workspace Files (*.tws) directly
- Replies: 11
- Views: 2015
R function to scan TWS files
The following function reads in a TWS and attempts to parse it for the file names. It returns an unnamed list. It is easy to modify it, as written it expects file names to only contain letters and numbers and : to mark Windows drive letters. scan.twsFile <- function(twsFile="/people/ccs3/morlan ...
- Wed Aug 29, 2012 7:47 pm
- Forum: General
- Topic: Editing Workspace Files (*.tws) directly
- Replies: 11
- Views: 2015
Editing Workspace Files (*.tws) directly (in R)
I use TWS all the time with my Sweave/R and routinely have 10-15 files open. It would be very handy to be able to automatically read the TWS (I'll point to it) from R so I can add documentation on the files used in a project. A simple scan() really messed up system, changing the character coding. I ...