File: %23Rscript2.bat

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (33 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

@Echo OFF 
setlocal
:: 
:: License: GPL 2.0
:: (c) 2013 GKX Associates Inc.
::
:: INSTALLATION INSTRUCTIONS:
:: Modify the definitions of R_HOME and R_ARCH as needed
:: (To get the value of R_HOME go into R and issue this command: 
::        normalizePath(R.home())
:: and use its output as the value here.  If you upgrade R to another
:: version R_HOME will need to be changed. For most users R_ARCH can 
:: be left as set but if you have a 32 bit system then comment out the
:: line setting R_ARCH and uncomment the prior line.)
::
:: RUN INSTRUCTIONS:
:: Create an R script whose first line is:
::  #Rscript2.bat %0 %*
:: and give it a .bat extension.  If it is called test.bat then call it 
:: like this (adding arguments if any):
::  test.bat 

set R_HOME=C:\Program Files\R\R-3.0.2

:: 32 or 64 bit version of R.  
:: (If you wish to use both versions of R make two versions of this file.)
:: set R_ARCH=i386

set R_ARCH=x64

set R_PATH=%R_HOME%\bin\%R_ARCH%
"%R_PATH%\Rscript.exe" %*