[GRASS-dev] R in winGRASS

Hi,

I am having troubles with running R in winGRASS. I installed R using this tutorial:
http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this when running R:

C:\Users\akratoc>R
‘“\R.exe”’ is not recognized as an internal or external command,
operable program or batch file.

Any idea?

Thank you

Anna

On Mon, Mar 16, 2015 at 6:05 PM, Anna Petrášová <kratochanna@gmail.com>
wrote:

Hi,

I am having troubles with running R in winGRASS. I installed R using this
tutorial:

http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this
when running R:

C:\Users\akratoc>R
'"\R.exe"' is not recognized as an internal or external command,
operable program or batch file.

Any idea?

I just read on the wiki, you have to install R first, then GRASS, so I
reinstalled GRASS, but still no success.

Thank you

Anna

Hi Anna,

You need to define the path to R. I wrote a short explanation here: https://pvanb.wordpress.com/2014/12/17/access-r-from-grass-gis-on-windows/

Hope that helps,

Paulo

···

On Mon, Mar 16, 2015 at 11:12 PM, Anna Petrášová <kratochanna@gmail.com> wrote:


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Mar 16, 2015 at 6:05 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi,

I am having troubles with running R in winGRASS. I installed R using this tutorial:
http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this when running R:

C:\Users\akratoc>R
‘“\R.exe”’ is not recognized as an internal or external command,
operable program or batch file.

Any idea?

I just read on the wiki, you have to install R first, then GRASS, so I reinstalled GRASS, but still no success.

Thank you

Anna

Anna Petrášová wrote

Hi,

I am having troubles with running R in winGRASS. I installed R using this
tutorial:
http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this
when
running R:

C:\Users\akratoc>R
'"\R.exe"' is not recognized as an internal or external command,
operable program or batch file.

Any idea?

Thank you

Anna

_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

http://lists.osgeo.org/mailman/listinfo/grass-dev

see http://grasswiki.osgeo.org/wiki/R_statistics#GRASS_7_Usage

I've added the R-batch files to winGRASS standalone 2 years ago; it worked
quite nicely

Tested with a daily winGRASS7.1.

the R-batch-files are in C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin

and it's the same like your error: outside a winGRASS session it works:

C:\Users\xxxxx>cd C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin

C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin>R

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 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:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin>

inside a winGRASS session:

          __________ ___ __________ _______________
         / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
        / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
       / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
       \____/_/ |_/_/ |_/____/____/ \____/___//____/

Welcome to GRASS GIS 7.1.svn (r64877)
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell
(C:\windows\system32\cmd.
exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit

Launching <wxpython> GUI in the background, please wait...
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\xxxx>R
Der Befehl ""\R.exe"" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\xxxx>

It seems to be broken; I will look into it.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193876.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Anna Petrášová wrote

On Mon, Mar 16, 2015 at 6:05 PM, Anna Petrášová &lt;

kratochanna@

&gt;
wrote:

Hi,

I am having troubles with running R in winGRASS. I installed R using this
tutorial:

http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this
when running R:

C:\Users\akratoc>R
'"\R.exe"' is not recognized as an internal or external command,
operable program or batch file.

Any idea?

I just read on the wiki, you have to install R first, then GRASS, so I
reinstalled GRASS, but still no success.

Thank you

Anna

_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

http://lists.osgeo.org/mailman/listinfo/grass-dev

related see: http://trac.osgeo.org/osgeo4w/ticket/413#comment:5

I've prepared the R batch files for including in OSGeo4W; let's hope it will
uploaded.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193900.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Hi,

I made it work, I reinstalled it and it works now. The first time, I haven’t installed it in Program Files because I read somewhere that spaces in path will cause problems for R. Now it’s in Program Files and so far everything is running.

Is it necessary to install it to Program Files?

Thanks for your help.

···

On Tue, Mar 17, 2015 at 10:00 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Anna Petrášová wrote

On Mon, Mar 16, 2015 at 6:05 PM, Anna Petrášová <

kratochanna@

>
wrote:

Hi,

I am having troubles with running R in winGRASS. I installed R using this
tutorial:

http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/

In normal windows command line, it works. In GRASS session, I get this
when running R:

C:\Users\akratoc>R
‘“\R.exe”’ is not recognized as an internal or external command,
operable program or batch file.

Any idea?

I just read on the wiki, you have to install R first, then GRASS, so I
reinstalled GRASS, but still no success.

Thank you

Anna


grass-dev mailing list

grass-dev@.osgeo

http://lists.osgeo.org/mailman/listinfo/grass-dev

related see: http://trac.osgeo.org/osgeo4w/ticket/413#comment:5

I’ve prepared the R batch files for including in OSGeo4W; let’s hope it will
uploaded.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193900.html

Sent from the Grass - Dev mailing list archive at Nabble.com.


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev