[postgis-users] New day, new problem - now with pl/r
Paragon Corporation
lr at pcorp.us
Sun Nov 8 21:45:13 PST 2015
Yap that's what I get.
-----Original Message-----
From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Darrel Maddy
Sent: Sunday, November 08, 2015 3:58 PM
To: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
Subject: Re: [postgis-users] New day, new problem - now with pl/r
Dear Regina,
Many thanks and sorry to be such a bother.
The SELECT plr_array_accum('{23,35}', 42); returns a cell with {23,35,42} - I assume that is what it is supposed to do?
I have posted on the plr list now and will eagerly await any responses.
I think the only package I have installed on top of the usual is ggplot2. I do use RStudio - perhaps that installs something?
Anyhow I will persevere for now as I would really like this to work.
Best wishes
Darrel
-----Original Message-----
From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Paragon Corporation
Sent: 8 November, 2015 8:50 PM
To: 'PostGIS Users Discussion' <postgis-users at lists.osgeo.org>
Subject: Re: [postgis-users] New day, new problem - now with pl/r
Darrel,
It could also have to do with a particular package you have in R installed.
I actually misspoke a bit. I forgot that the load_r_typenames() function must be called first - which explains my error (so I have no error :) ) so full needs to be:
SELECT load_r_typenames(); -- should just return OK.
Followed by:
SELECT * FROM r_typenames() limit 10;
If it's hanging in the load_r_typenames() call, and given it works for me (and fails on both your setups, I would seriously suspect an R package you have loaded is tripping PL/R) Probably still worthwhile to report to PL/R list and Joe could provide tips on narrowing down the issue.
Do other queries work okay? Like this:
SELECT plr_array_accum('{23,35}', 42);
Thanks,
Regina
From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Darrel Maddy
Sent: Sunday, November 08, 2015 3:12 PM
To: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
Subject: Re: [postgis-users] New day, new problem - now with pl/r
OK everything checks out in the command window. Path is set correctly, as is R_HOME (as a system variable). I guess this was already evident in the first query which retrieves these correctly from plr_environ();
I experimented by trying to run the plr sql scripts but they did not run because the functions were already defined. I guess this means the plr extension installed correctly. R is working just fine from the directory pointed to by R_HOME. I tried your new variant but that did not work either in PgAdmin.
As this problem exists on both my laptop and my workstation (both run windows 10 and the same versions of postgresql and postgis) I am now at a loss. This is a pity as I use R for most of my data analysis and visualisation and it would have been nice to do this in one step. Looks like I will have to output to file and then retrieve things directly in R. ?
Many thanks for your help and suggestions.
Darrel
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list