[ESS] Ess does not find path to user packages
Vincent Goulet
V|ncent@Gou|et @end|ng |rom @ct@u|@v@|@c@
Mon Feb 10 20:37:57 CET 2025
I'm with Fer here. I'm afraid I don't see the point in telling ESS about personal libraries. This thread taught me it is possible in the first place, even after 20+ years using ESS. ;-)
The important thing appears to tell R about personal libraries, so that what works inside Emacs+ESS will also work elsewhere.
Honest question: what do you guys use ess-r-package-library-paths for?
v.
Vincent Goulet
Professeur titulaire
École d'actuariat, Université Laval
> Le 9 févr. 2025 à 16:25, Fer via ESS-help <ess-help using r-project.org> a écrit :
>
> I think you should tell it directly to R too?
>
> At least is how I do it, setting it in the .Renviron file with
>
> R_LIBS_USER='~/myPath'
>
> cheers
>
> Fer
>
> On 2/8/25 07:30, Naresh Gurbuxani via ESS-help wrote:
>> In my init.el file, I have defined a path for personal packages.
>>
>> (use-package ess
>> :defer t
>> :config
>> (require 'ess-r-mode)
>> ;; many lines omitted
>> (setq ess-r-package-library-paths
>> (append ess-r-package-library-paths
>> '("/Users/nareshgurbuxani/Documents/statProgram/packages")))
>> )
>>
>> In a new emacs session, R does not find this path. Below is my R session.
>>> install.packages("linmod_1.0.tar.gz", repos = NULL)
>> Warning in install.packages("linmod_1.0.tar.gz", repos = NULL) :
>> 'lib = "/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library"' is not writable
>> Would you like to use a personal library instead? (yes/No/cancel) cancel
>> Error in install.packages("linmod_1.0.tar.gz", repos = NULL) :
>> unable to install packages
>>
>> Why does R not see the additional path defined above?
>>
>> Thanks,
>> Naresh
>> ______________________________________________
>> 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