Re: [ESS] ess-set-working-directory
That did it. Thanks, Kevin On Sun, Mar 31, 2024, 7:17 AM Stephen J. Eglen wrote: > > > 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@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@r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/ess-help > >> > > > > [[alternative HTML version deleted]] > > > > __ > > ESS-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] ess-set-working-directory
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@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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] ess-set-working-directory
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@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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] ess-set-working-directory
Oops… More details… (ess-version) "ess-version: 24.01.1 [] (loaded from /usr/local/emacs/29.2/share/emacs/site-lisp/ess/lisp/)" emacs-version "29.2" When I have (setq ess-ask-for-ess-directory t) then it prompts me: but the prompted default is for the root of the R package rather than default-directory. What else would be helpful to know here? -- 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. From: Sparapani, Rodney Date: Saturday, March 30, 2024 at 10:51 AM To: ess-help (ess-help@r-project.org) Subject: ess-set-working-directory 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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help