On 02/12/2023 00:29, Stephen P Carrier wrote:
On Fri, Dec 1, 2023 at 3:24 PM Stephen P Carrier <carr...@berkeley.edu
<mailto:carr...@berkeley.edu>> wrote:
On Tue, Nov 28, 2023 at 8:32 PM Marco Atzeri <marco.atz...@gmail.com
<mailto:marco.atz...@gmail.com>> wrote:
On 29.11.2023 02:12, Stephen P Carrier via Cygwin wrote:
> I have found another issue with Cygwin R.
>
> This is for a brand new R installation (4.3.0) on up-to-date
Cygwin. I am
> warned when starting R that "stats" package was not found.
Though it was
> just a warning I do need the stats package for some things.
>
> Minimal test case: I invoke "R" with no arguments and get:
> During startup - Warning message:
> package ‘stats’ in options("defaultPackages") was not found
>> library("stats")
> Error: package or namespace load failed for ‘stats’ in
dyn.load(file,
> DLLpath = DLLpath, ...):
> unable to load shared object
'/usr/lib/R/library/stats/libs/stats.dll':
> No such file or directory
Hi Stephen,
a big hint is what stats.dll requires
$ cygcheck /usr/lib/R/library/stats/libs/stats.dll | grep -v "^ "
C:\cygwin64\lib\R\library\stats\libs\stats.dll
C:\cygwin64\bin\libR.dll
C:\cygwin64\lib\lapack\cyglapack-0.dll
the last math library is, for specific system reason, in an unusual
position, and for that reason the package provides the etc/profile to
add "/usr/lib/lapack" to the PATH
$ cygcheck -l liblapack0
/etc/profile.d/lapack0.csh
/etc/profile.d/lapack0.sh
/usr/lib/lapack/cygblas-0.dll
/usr/lib/lapack/cyglapack-0.dl
$ echo $PATH
/home/marco/bin:/usr/local/bin:/usr/bin:/usr/lib/lapack:/usr/sbin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/d/utility
I assume that you are redefining the PATH and missed this Lapack directory
Regards
Marco
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple