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 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
Separate packages per windows subarch in repository
5 messages · Uwe Ligges, Jeroen Ooms, Iago Mosqueira
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
On Thu, Jul 20, 2017 at 1:55 PM, Iago Mosqueira
<iago.mosqueira at gmail.com> wrote:
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.
Have a look at the antiword package. It has a simple makevars which builds antiword$(WIN) executable which is just the 'antiword' on unix, and antiword32.exe + antiword64.exe on multiarch windows.
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
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