[GRASS-user] v.class.mlR error

Markus Neteler neteler at osgeo.org
Wed May 24 15:25:57 PDT 2017


On Wed, May 24, 2017 at 12:14 PM, James Duffy
<james.philip.duffy at gmail.com> wrote:
...
> v.class.mlR --verbose segments_map=seg_stats_vec at MAP1
...
> My GRASS mapset is located in - C:\Sandbox\RGRASS\TEST\MAP1
>
> Given that R takes paths with / rather than \, I think the issue lies at the
> start of the R part of the script which reads:
>
> require(caret)
> features <- read.csv("C:\Sandbox\RGRASS\TEST\MAP1\.tmp/unknown\5636.0",
> sep="|", header=TRUE, row.names=1)
> training <- read.csv("C:\Sandbox\RGRASS\TEST\MAP1\.tmp/unknown\5636.1",
> sep="|", header=TRUE, row.names=1)
>
> I have run v.class.mlR on an osgeolive build before, but not on Windows. Is
> this a Windows specific issue that needs addressing?

In the script I see things like
                reclass_files[classifier] = tmpfilename.replace("\\", "/")

which is probably unhelpful on Windows. Not sure how to make that
portable, though.

Markus


More information about the grass-user mailing list