[R] relative referencing for filenames &etc

From: Greg Tarpinian <sasprog474474_at_yahoo.com>
Date: Tue 28 Feb 2006 - 07:12:01 EST


BACKGROUND:
I use SAS on a daily basis and one of its most powerful features in a production environment is the use of LIBNAME and FILEREF statements, e.g.:

PROC PRINTTO LOG = "&LOGDIR.\data processing.log" NEW; RUN;
PROC IMPORT

	DATAFILE= "&DATADIR.\blah.xls"
	OUT = TEMP
	DBMS = EXCEL REPLACE;

    SHEET = "Sheet1";
    GETNAMES = YES;
RUN; Properly setting up SAS Shortcuts in the WinXP environment, or (say) the UNIX equivalent of batch files in the UNIX environment will cause SAS to autoexecute (say) an INIT.SAS file that automatically assigns the LOGDIR and DATADIR macro variables used above. This is extremely
convenient because it makes the SAS code more portable from project to project.

MY QUESTION:
Is it possible to use this kind of relative file and directory referencing from within R?

Kind regards,

      Greg



R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 28 07:22:10 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:46 EST