[ESS] ess-set-working-directory

Stephen J. Eglen @je30 @end|ng |rom c@m@@c@uk
Sun Mar 31 13:17:14 CEST 2024



hi Kevin, Rodney,

I think the variable and setting you are looking for is:

(setq ess-startup-directory 'default-directory)

Best wishes,

Stephen







On Sun, Mar 31 2024, Kevin Coombes via ESS-help wrote:

> I don't know where this "feature" lives in the code. But it 
> might help find
> it to know that it does the same thing in any git project or 
> subversion
> project, even if it isn't an R package.
>
> Hopefully,  someone can track it down, since I view it as a bug 
> I want to
> remove, and not a feature.
>
> Best,
>   Kevin
>
> On Sat, Mar 30, 2024, 11:51 AM Sparapani, Rodney via ESS-help <
> ess-help using r-project.org> wrote:
>
>> Hi ESS-help:
>>
>> When I am working on an R script that is not part of an R 
>> package,
>> then ess-set-working-directory does what would be expected, 
>> i.e.,
>> on a launch of R it does setwd() to the buffer’s 
>> default-directory.
>> However, when I am in, say, the demo directory of an R package,
>> then it doesn’t.  It places me at the root of the R package.
>> I can’t seem to figure out where this is taking place.
>> It must have something to do with ess-r-package.el.
>> But I am stumped about how to make it stop.
>> Any advice is much appreciated.  Thanks
>>
>> --
>> Rodney Sparapani, Associate Professor of Biostatistics, 
>> He/Him/His
>> Vice President, Wisconsin Chapter of the American Statistical 
>> Association
>> Institute for Health and Equity, Division of Biostatistics
>> Medical College of Wisconsin, Milwaukee Campus
>>
>> If this is outside of working hours, then please respond when 
>> convenient.
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> ESS-help using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list