Skip to content
Prev 1905 / 15380 Next

[R-es] Distribuir paquete Windows

Hola,

Hasta donde yo se, la compilación de paquetes para windows no es
evidente. Cuando lo he necesitado he utilizado esta página:
http://win-builder.r-project.org/

Con todo, creo que es posible hacerlo en el ordenador de uno mismo
(http://cran.r-project.org/doc/manuals/R-exts.html#Building-packages):

    "Multiple sub-architectures: On systems which support multiple
    sub-architectures (principally Windows and Mac OS X), R CMD check
    will install and check a package which contains compiled code under
    all available sub-architectures. (Use option --force-multiarch to
    force this for packages without compiled code, which are otherwise
    only checked under the main sub-architecture.) This will run the
    loading tests, examples and tests directory under each installed
    sub-architecture in turn, and give an error if any fail. Where
    environment variables (including PATH17) need to be set differently
    for each sub-architecture, these can be set in
    architecture-specific files such as R_HOME/etc/i386/Renviron.site.

    An alternative approach is to use R CMD check --no-multiarch to
    check the primary sub-architecture, and then to use something like
    R --arch=x86_64 CMD check --extra-arch or
    (Windows) /path/to/R/bin/x64/Rcmd check --extra-arch to run for
    each additional sub-architecture just the checks18 which differ by
    sub-architecture. "

Saludos.

Oscar. 

El Mon, 21 Feb 2011 09:38:16 +0100
(CET) <guivivi en alumni.uv.es> escribió:
-------------------
Oscar Perpiñán Lamigueiro
Dpto. Ingeniería Eléctrica
EUITI-UPM