Sorry for bothering with trivial things. For example abc.R is run under c:\temp. How to get the path inside the code? I am trying to avoid writing a fixed path, which can make it more dynamic. Thanks.
            Asked
            
        
        
            Active
            
        
            Viewed 278 times
        
    0
            
            
        - 
                    What you're looking for is usually referred to as the "working directory." I don't use r, but this might help: http://stat.ethz.ch/R-manual/R-devel/library/base/html/getwd.html – Steve Howard Jan 31 '14 at 22:02
- 
                    Can you give a bit more info about how you'll use it? You can use `getwd` but sometimes you specify a path as in `./dir`. – Tyler Rinker Jan 31 '14 at 22:21
1 Answers
3
            
            
        If you only want to find the current working directory, try having a look at ?getwd.
 
    
    
        buruzaemon
        
- 3,847
- 1
- 23
- 44
