Because ESS does not query .libPaths(). In your case, that wouldn’t work anyways since you don't have a personal library according to the output below.
-- 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_gurbux...@hotmail.com> Date: Saturday, February 8, 2025 at 9:16 AM To: Sparapani, Rodney <rspar...@mcw.edu> Cc: ess-help@r-project.org <ess-help@r-project.org> 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. ________________________________ .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@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@r-project.org mailing list > https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!4ILS4TAqjriO4dBBwZJDfuhWNJALV2MxWhYjg5H8y1Ncgnoq4VKEoxbdFpS1sH1Dc_arMEhxXe6UIwfVfIG97xTCsWHY$<https://urldefense.com/v3/__https:/stat.ethz.ch/mailman/listinfo/ess-help__;!!H8mHWRdzp34!4ILS4TAqjriO4dBBwZJDfuhWNJALV2MxWhYjg5H8y1Ncgnoq4VKEoxbdFpS1sH1Dc_arMEhxXe6UIwfVfIG97xTCsWHY$> [[alternative HTML version deleted]] ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help