#413: add "Windows batchfiles for use with R" to OSGeo4W ------------------------+---------------------------- Reporter: hellik | Owner: osgeo4w-dev@… Type: enhancement | Status: new Priority: major | Component: Package Version: | Resolution: Keywords: R | ------------------------+----------------------------
Comment (by hellik): Replying to [comment:9 jef]: > Do you need the batchfiles in apps instead of bin? {{{R_ARCH}}} is also hardcoded to {{{x64}}} in {{{Rpathset.bat}}}. Is that correct? Rpathset.bat isn't needed. so no hardcoded paths. also the batchfiles can live in apps. what I've done locally in osgeo4w 32bit and 64bit by using ''R path - Add R_TOOLS, R_MIKTEX & R_PATH to path for this cmd line session'' (options see above); eg. my osgeo4w 64 bit lives in ''C:\OSGeo4W64'', added the batch-files to ''C:\OSGeo4W64\apps\rbatch''; and added in ini: {{{ C:\OSGeo4W64\etc\ini\rosgeo.bat IF EXIST "%ProgramFiles%\R\" %OSGEO4W_ROOT%\apps\rbatch\R path }}} open the osgeo4w shell: {{{ [...] GDAL 1.11.3, released 2015/09/16 C:\>echo %PATH% {app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\windows\system32;C:\w indows;C:\windows\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\R\R-3.2.3\bin\ x64 C:\>R R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R ist freie Software und kommt OHNE JEGLICHE GARANTIE. Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten. Tippen Sie 'license()' or 'licence()' für Details dazu. R ist ein Gemeinschaftsprojekt mit vielen Beitragenden. Tippen Sie 'contributors()' für mehr Information und 'citation()', um zu erfahren, wie R oder R packages in Publikationen zitiert werden können. Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder 'help.start()' für eine HTML Browserschnittstelle zur Hilfe. Tippen Sie 'q()', um R zu verlassen. > q() Workspace sichern? [y/n/c]: n C:\> }}} using the option ''R path - Add R_TOOLS, R_MIKTEX & R_PATH to path for this cmd line session'' is more robust than {{{ SET PATH=%PATH%;%OSGEO4W_ROOT%\apps\rbatchfiles }}} as mentioned above. I'll provide a new package accordingly. -- Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/413#comment:10> OSGeo4W <http://trac.osgeo.org/osgeo4w> OSGeo4W is the Windows installer and package environment for the OSGeo stack. _______________________________________________ osgeo4w-dev mailing list osgeo4w-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev