Displaying 3 results from an estimated 3 matches for "getsrcdirectory".
2011 Aug 17
1
A question about using getSrcDirectory() with R/Rscript
Good morning R-help,
I have an idiot question: I would like to use getSrcDirectory()
and friends to allow me to identify where an R file has been
called from when invoked using Rscript. If I understand the
documentation correctly, the following example should work:
In file test.R:
   options(keep.source=T)
   fn<-function(x){x<-x+1}
   srcDir<-getSrcDirectory(fn)
   pri...
2011 Apr 13
0
R 2.13.0 is released
...) removes the internally stored
      source from a function.
    ? "srcref" attributes now include two additional line number
      values, recording the line numbers in the order they were parsed.
    ? New functions have been added for source reference access:
      getSrcFilename(), getSrcDirectory(), getSrcLocation() and
      getSrcref().
    ? Sys.chmod() has an extra argument use_umask which defaults to
      true and restricts the file mode by the current setting of umask.
      This means that all the R functions which manipulate
      file/directory permissions by default respect umas...
2011 Apr 13
0
R 2.13.0 is released
...) removes the internally stored
      source from a function.
    ? "srcref" attributes now include two additional line number
      values, recording the line numbers in the order they were parsed.
    ? New functions have been added for source reference access:
      getSrcFilename(), getSrcDirectory(), getSrcLocation() and
      getSrcref().
    ? Sys.chmod() has an extra argument use_umask which defaults to
      true and restricts the file mode by the current setting of umask.
      This means that all the R functions which manipulate
      file/directory permissions by default respect umas...