Skip to content

Please add a repo with all packages (including binaries) as a gh-page #90

@jankatins

Description

@jankatins

I've added such a repository at http://janschulz.github.io/IRkernel/ but only for windows (R 3.1 and 3.2) and source packages. This is pullabale via the 'gh-pages' branch in https://github.com/JanSchulz/IRkernel.git (I can't create a PR against a nonexisting branch in this Repo :-( ).

For a user, this is useable as install.packages(c("rzmq","repr","IRkernel","IRdisplay"), repos="http://janschulz.github.io/IRkernel")

My script to generate the windows version looks like this (it has two dirs for the IRkernel: IRkernel with master checked out and IRkernel-ghpage with the 'gh-pages' branch checked out; rzmq is checked out with my PR in ropensci/rzmq#16; I use drat as in eddelbuettel/drat#16, which has binary support for windows and macosx, but the latter untested):

set OLDPATH=%path%
set path=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files\R\R-3.1.2\bin\x64;%OLDPATH% 
echo "building for R3.1"

rem @echo off
::setlocal EnableDelayedExpansion
set old=%CD%
cd %~dp0

R -e "R.Version()"
pause

for %%G IN (rzmq,repr,IRKernel,IRDisplay) do (
   echo %%G
   R CMD build %%G
   rem R CMD check %%g_*.tar.gz
   R CMD INSTALL --build --compile-both %%G
   )

pause

::goto :EOF

for /f "tokens=*" %%G in ('dir /b "*.zip"') do (
   echo %%G
   R --slave -e "drat:::insert('%%~nG%%~xG', repodir='IRkernel-ghpages')"
   move /y %%G packages\3.1
   )

for /f "tokens=*" %%G in ('dir /b "*.tar.gz"') do (
   echo %%G
   R --slave -e "drat:::insert('%%~nG%%~xG', repodir='IRkernel-ghpages')"
   move /y %%G packages\3.1
   )

pause

set path=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files\R\R-3.2\bin\x64;%OLDPATH% 
echo "building for R3.2"

R -e "R.Version()"
pause

rem @echo off
::setlocal EnableDelayedExpansion
set old=%CD%
cd %~dp0

for %%G IN (rzmq,repr,IRKernel,IRDisplay) do (
   echo %%G
   R CMD build %%G
   rem R CMD check %%g_*.tar.gz
   R CMD INSTALL --build --compile-both %%G
   )

pause

::goto :EOF

for /f "tokens=*" %%G in ('dir /b "*.zip"') do (
   echo %%G
   R --slave -e "drat:::insert('%%~nG%%~xG', repodir='IRkernel-ghpages')"
   move /y %%G packages\3.2
   )

for /f "tokens=*" %%G in ('dir /b "*.tar.gz"') do (
   echo %%G
   R --slave -e "drat:::insert('%%~nG%%~xG', repodir='IRkernel-ghpages')"
   move /y %%G packages\3.2
   )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions