[R-pkg-devel] Windows load error installing package SOLVED - additional note
J C Nash
pro|jcn@@h @end|ng |rom gm@||@com
Sun Jun 13 12:49:19 CEST 2021
Thanks Uwe.
My misunderstanding. I thought the reference was to one of the
"src/" directories in the base R tree. However, I found examples in
some packages for the location.
Windows is alien territory for me, unfortunately.
JN
On 2021-06-12 7:27 p.m., Uwe Ligges wrote:
>
>
> On 12.06.2021 16:39, J C Nash wrote:
>> Two minor notes:
>>
>> 1) The Writing R Extensions manual, as far as I can determine, does not inform package
>> developers that Makevars.win needs to be in the src/ subdirectory. I followed the example
>> of some other packages to choose where to put it.
>
> I just searched for Makevars.win in Writing R Extensions and the first occurence is:
> "There are platform-specific file names on Windows: src/Makevars.win"
>
> So tells you both it should be in src and how to capitlize.
>
> Best,
> Uwe
>
>
>>
>> 2) Also, while I managed to get my package to install with "makevars.win", I got a
>> WARNING on running a CHECK until I replaced it with "Makevars.win", i.e., Camel-case
>> name.
>>
>> Do these observations merit edits in the manual?
>>
>> JN
>>
>>
>> On 2021-06-11 11:16 a.m., J C Nash wrote:
>>> After some flailing around, discovered a posting
>>>
>>> https://stackoverflow.com/questions/42118561/error-in-r-cmd-shlib-compiling-c-code
>>>
>>> which showed a makevars.win file containing
>>>
>>> PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
>>>
>>> I had tried several similar such makevars.win files, but trying PKG_LIBS+= and
>>> no spaces. There is mention of the libraries in Writing R Extensions, but given
>>> the heavy use of LAPACK, BLAS and FLIBS, perhaps this example should be there
>>> in the documentation. I've separately noted that Linux sessionInfo() shows
>>> BLAS and LAPACK but Windows does not.
>>>
>>> Cheers, JN
>>>
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
More information about the R-package-devel
mailing list