[ESS] Ess does not find path to user packages

Sparapani, Rodney r@p@r@p@ @end|ng |rom mcw@edu
Sat Feb 8 17:37:43 CET 2025


Correct.  ESS does not configure R so to speak.  Thanks

--
Rodney Sparapani, Associate Professor of Biostatistics, He/Him
President, Wisconsin Chapter of the American Statistical Association
Division of Biostatistics, Data Science Institute
Medical College of Wisconsin, Milwaukee Campus


From: Naresh Gurbuxani <naresh_gurbuxani using hotmail.com>
Date: Saturday, February 8, 2025 at 9:38 AM
To: Sparapani, Rodney <rsparapa using mcw.edu>
Subject: Re: [ESS] Ess does not find path to user packages
ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
________________________________
Thanks for explaining.  To check my understanding, ess variable ess-r-package-library-paths is not meant to be used for defining paths to load packages from personal library.  It is best to define these paths in .Rprofile using .libPaths() function.

Thanks again for your patience


On Feb 8, 2025, at 10:32 AM, Sparapani, Rodney <rsparapa using mcw.edu> wrote:

As it states in the documentation….

ess-r-package-library-paths is a variable defined in ‘ess-r-package.el’.

Its value is nil

Default path to find user packages.
Can be either a string specifying a directory or a list of
directories. This variable is also consulted by
‘xref-find-definitions’ in R buffers. See ‘ess-r-xref-backend’.

--
Rodney Sparapani, Associate Professor of Biostatistics, He/Him
President, Wisconsin Chapter of the American Statistical Association
Division of Biostatistics, Data Science Institute
Medical College of Wisconsin, Milwaukee Campus


From: Naresh Gurbuxani <naresh_gurbuxani using hotmail.com<mailto:naresh_gurbuxani using hotmail.com>>
Date: Saturday, February 8, 2025 at 9:27 AM
To: Naresh Gurbuxani <naresh_gurbuxani using hotmail.com<mailto:naresh_gurbuxani using hotmail.com>>
Cc: Sparapani, Rodney <rsparapa using mcw.edu<mailto:rsparapa using mcw.edu>>
Subject: Re: [ESS] Ess does not find path to user packages
ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
________________________________

After adding this directory in .Rprofile (using .libPaths()), I can load library from this path.  If I just wanted to load my personal packages, I can do that without updating init.el file by setting a value to ess-r-package-library-paths.

What is the use of the variable ess-r-package-library-paths?

> On Feb 8, 2025, at 10:16 AM, Naresh Gurbuxani via ESS-help <ess-help using r-project.org<mailto:ess-help using r-project.org>> wrote:
>
> .libPaths() does not see the new directory added.
>
> !> .libPaths()
> [1] "/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library”
>
> In my .Rprofile, I can include the new directory in .libPaths().  But then, why do I need to update my init.el file also?
>
>> On Feb 8, 2025, at 10:10 AM, Sparapani, Rodney via ESS-help <ess-help using r-project.org<mailto:ess-help using r-project.org>> wrote:
>>
>> Hi Naresh:
>>
>> What does .libPaths() show for you?
>>
>> For me, �
>>> .libPaths()
>> [1] "/home/rsparapa/R/4.3.1/lib64/R/library"
>> [2] "/usr/local/R/4.3.1/lib64/R/library"
>>
>> So for me, I think, it should be set like this�
>> (setq ess-r-package-library-paths "/home/rsparapa/R/4.3.1/lib64/R/library")
>>
>> Of course, R needs to know about this too.  In my ~/.Rprofile I have�
>> .libPaths('~/R/4.3.1/lib64/R/library')
>> --
>> Rodney Sparapani, Associate Professor of Biostatistics, He/Him
>> President, Wisconsin Chapter of the American Statistical Association
>> Division of Biostatistics, Data Science Institute
>> Medical College of Wisconsin, Milwaukee Campus
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> ESS-help using r-project.org<mailto:ESS-help using r-project.org> mailing list
>> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!5Y4GPURVDl82rRI2TKi6iR3Yb1b-LToftkZkeYw27qiJcg7dIv-JZySNyCo6Apvb5eijgj3zHB0HUPRSvRMUF2gRwRsh$<https://urldefense.com/v3/__https:/stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!5Y4GPURVDl82rRI2TKi6iR3Yb1b-LToftkZkeYw27qiJcg7dIv-JZySNyCo6Apvb5eijgj3zHB0HUPRSvRMUF2gRwRsh$>
>
> ______________________________________________
> ESS-help using r-project.org<mailto:ESS-help using r-project.org> mailing list
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!5Y4GPURVDl82rRI2TKi6iR3Yb1b-LToftkZkeYw27qiJcg7dIv-JZySNyCo6Apvb5eijgj3zHB0HUPRSvRMUF2gRwRsh$<https://urldefense.com/v3/__https:/stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!5Y4GPURVDl82rRI2TKi6iR3Yb1b-LToftkZkeYw27qiJcg7dIv-JZySNyCo6Apvb5eijgj3zHB0HUPRSvRMUF2gRwRsh$>


	[[alternative HTML version deleted]]



More information about the ESS-help mailing list