Re: [R] relative referencing for filenames &etc

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 01 Mar 2006 - 00:01:43 EST

On Mon, 27 Feb 2006, Greg Tarpinian wrote:

> 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?

Perhaps you are looking for ?setwd

Uwe ligges  

>
> 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
>



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 Wed Mar 01 00:15:00 2006

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