Re: [ESS] turning off ess-r-package-mode
I've had quite some troubles with this too... I found that renaming the DESCRIPTION file will do the trick. I choose to rename it to "locked_DESCRIPTION" and then I can just go and rename it back whenever I want the features of package mode. Thought it might help someone else in the future. Best, Mads __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] turning off ess-r-package-mode
>> On Wed, Aug 24 2016 15:49, Tyler Smith wrote: > The `ess-r-package-auto-activate` toggle isn't working for me. From > `emacs -Q`, I'm setting up with this script: > (require 'package) > (setq package-load-list > '((ess t) > (julia-mode t)) > (package-initialize) > (require 'ess-site) > (setq ess-r-package-auto-activate nil) It should be (setq ess-r-package-auto-set-evaluation-env nil) > And I'm still getting the problems I describe. > However, `C-c C-t C-s` did allow me to turn off the namespace > evaluation, thanks! Yes. This is the on-the fly method which is probably more suitable for your needs. I am actually wondering if we should be more resilient with respect to package loading errors somehow. Vitalie __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] turning off ess-r-package-mode
The `ess-r-package-auto-activate` toggle isn't working for me. From `emacs -Q`, I'm setting up with this script: (require 'package) (setq package-load-list '((ess t) (julia-mode t)) (package-initialize) (require 'ess-site) (setq ess-r-package-auto-activate nil) And I'm still getting the problems I describe. However, `C-c C-t C-s` did allow me to turn off the namespace evaluation, thanks! Best, Tyler -- plantarum.ca On Wed, Aug 24, 2016, at 03:40 PM, Lionel Henry wrote: > Hi, > > You can set `ess-r-package-auto-activate` to nil to prevent the mode > from auto loading. If you just want to prevent automatic namespaced > evaluation within packages you can set > `ess-r-package-auto-set-evaluation-env` to nil. And to do the latter > manually, C-c C-t C-s. > > Lionel > >> On 24 août 2016, at 21:34, Tyler Smithwrote: >> >> Hi, >> >> I am working on a package that is currently unloadable (conflicts >> between NAMESPACE and current R/ code). Working on this is very >> difficult, because I can't convince ESS to treat my code files as >> regular files, rather than as part of the package. For example, I can >> pass a class definition to the running R process line-by-line >> with `C-c >> C-n`. However, if I try to do the same thing by selecting the region >> and using `C-c C-r`, I get the error: >> >>> >> + . + Error in library(package, character.only = TRUE) : >> there is no package called ‘flowPloidy’ >> >> I can't currently use `devtools::load_all()`, as there are >> bugs I need >> to address before this is possible. >> >> I have tried calling `M-x ess-r-package-mode` in both the source file >> and the R process buffer, watching to see that the mode is >> *disabled* in >> both locations. Even after I do this, the modeline in my R >> source buffer >> includes the string "[R pkg]", and checking the value of >> `minor-mode-list` reveals that even when `ess-r-package-mode` is >> disabled, the value "ess-r-package-mode" is still present for the >> buffer. >> >> Normally this feature has been both super-useful and completely >> unobtrusive. But I can't figure out how to get it to stop helping me. >> How do I turn it off? I want to be able to load code into the global >> environment using C-c C-r and C-c C-f. >> >> Thanks, >> >> Tyler >> >> Emacs 25.1.1 >> ESS 16.04 elpa:20160824.1141 >> >> -- >> plantarum.ca >> >> __ >> 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] turning off ess-r-package-mode
Hi, I am working on a package that is currently unloadable (conflicts between NAMESPACE and current R/ code). Working on this is very difficult, because I can't convince ESS to treat my code files as regular files, rather than as part of the package. For example, I can pass a class definition to the running R process line-by-line with `C-c C-n`. However, if I try to do the same thing by selecting the region and using `C-c C-r`, I get the error: > + . + Error in library(package, character.only = TRUE) : there is no package called ‘flowPloidy’ I can't currently use `devtools::load_all()`, as there are bugs I need to address before this is possible. I have tried calling `M-x ess-r-package-mode` in both the source file and the R process buffer, watching to see that the mode is *disabled* in both locations. Even after I do this, the modeline in my R source buffer includes the string "[R pkg]", and checking the value of `minor-mode-list` reveals that even when `ess-r-package-mode` is disabled, the value "ess-r-package-mode" is still present for the buffer. Normally this feature has been both super-useful and completely unobtrusive. But I can't figure out how to get it to stop helping me. How do I turn it off? I want to be able to load code into the global environment using C-c C-r and C-c C-f. Thanks, Tyler Emacs 25.1.1 ESS 16.04 elpa:20160824.1141 -- plantarum.ca __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help