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 <[email protected]> Date: Saturday, February 8, 2025 at 9:38 AM To: Sparapani, Rodney <[email protected]> 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 <[email protected]> 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 <[email protected]<mailto:[email protected]>> Date: Saturday, February 8, 2025 at 9:27 AM To: Naresh Gurbuxani <[email protected]<mailto:[email protected]>> Cc: Sparapani, Rodney <[email protected]<mailto:[email protected]>> 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 > <[email protected]<mailto:[email protected]>> 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 >> <[email protected]<mailto:[email protected]>> 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]] >> >> ______________________________________________ >> [email protected]<mailto:[email protected]> 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$> > > ______________________________________________ > [email protected]<mailto:[email protected]> 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]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
