[ESS] Ess does not find path to user packages

Fer |@rcego@p| @end|ng |rom gm@||@com
Sun Feb 9 22:25:36 CET 2025


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]]



More information about the ESS-help mailing list