From iago.mosqueira at gmail.com  Thu Jul 20 17:25:10 2017
From: iago.mosqueira at gmail.com (Iago Mosqueira)
Date: Thu, 20 Jul 2017 17:25:10 +0200
Subject: [Rd] Separate packages per windows subarch in repository
In-Reply-To: <CAAi6idWLxm+M070s98ZEpaXNgx8_aLeSNyhswvp5BwS98en=Hg@mail.gmail.com>
References: <CAAi6idX_HGY6QwNMnvVgwJ-EGD5FX8tY_vYjOEHd-O6YFFZUQg@mail.gmail.com>
 <24eede53-227b-bb36-4071-fcfd112214fc@statistik.tu-dortmund.de>
 <CAAi6idWLxm+M070s98ZEpaXNgx8_aLeSNyhswvp5BwS98en=Hg@mail.gmail.com>
Message-ID: <CAAi6idWma2-KPSVSRWg1jWRcT6cpZ_nP8kLgBcD533qncOVpRg@mail.gmail.com>

I have something working using configure.win, but this changes the
executable when the windows version of the package is created via R CMD
INSTALL --build.

Could there be any way to do so at installation time from the binary
package?

Thanks,


Iago

On 20 July 2017 at 16:21, Iago Mosqueira <iago.mosqueira at gmail.com> wrote:

> Thanks. I did not explain clearly that the executables are not compiled
> during package compilation, apologies. They are compiled beforehand, as
> they use ADMB (AD Model Builder) and placed in inst/bin/windows.
>
> I assume Makefile.win could copy the appropriate one from PKG/bin/$arch to
> PKG/inst/bin/ so that the right one is installed?
>
> Cheers,
>
>
> Iago
>
> On 20 July 2017 at 15:38, Uwe Ligges <ligges at statistik.tu-dortmund.de>
> wrote:
>
>>
>>
>> On 20.07.2017 13:55, Iago Mosqueira wrote:
>>
>>> Hi,
>>>
>>> I maintain a repository of R packages, where some of them contain
>>> executable binaries. I need to separate those compiled for 32 and 64 bit
>>> in
>>> Windows, but I could not how to do any of the two options I can think of:
>>>
>>> 1. Have subarch subfolders in PKG/inst/bin to that the right one is
>>> installed or called
>>>
>>
>> Use 1., i.e. the same approach as for dlls, where we have the two subdirs
>> for the two archs.
>>
>> I think this will be difficult in Makevars.win when you build the
>> executable binaries as part of the installation process, hence I think an
>> appropriate Makefile.win should be used.
>>
>> Best,
>> Uwe Ligges
>>
>>
>>
>>
>> 2. Have separate versions of the packages accessible in the same
>>> repository
>>> for each subarch, e.g. bin/windows/contrib/3.4/i386
>>>
>>> Could I do thew first via a configure.win script?
>>>
>>> Is the second option possible?
>>>
>>> Any pointers to the documentation I might have missed would be
>>> appreciated.
>>>
>>> Best regards,
>>>
>>>
>>> Iago
>>>
>>>         [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>>
>

	[[alternative HTML version deleted]]



[Rd] Separate packages per windows subarch in repository
Iago Mosqueira