Hi, my name is Hans i am totally new to R.
I have been pointed out to a code which can retrieve GIS information into e.g. csv files from GIS servers.
I am struggling to get R studio and this script working.
I think i managed to install devtools. But i get a lot of errors like "could not find function "ahn_point"
I would be very happy if someone can help me to get this working.
In the ideal situation i would like to make some standalone executable file and a YouTube demo to have other people like myself help to work with this.
Running as adminstrator did not help. Where can i find the folder? Glue does not show up.
Remove .. install worked for glue at last
But not RHNextract. Does it work at your end?
package ‘glue’ successfully unpacked and MD5 sums checked
Error: Failed to install 'rAHNextract' from GitHub:
(converted from warning) cannot remove prior installation of package ‘glue’
What worked for me is installing the glue package by itself before installing 'rAHNextract' by using install.package("glue"). Make sure to remove the 'glue' package first.
Also, do you have Rtools installed? This is a seperate program that is recommended if you download packages through 'github_install()'.
So downloading now..
I will come back some day i got this programm running.
..
..
installing source package 'rAHNextract' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'rAHNextract'
finding HTML links ... done
ahn_area html
ahn_letters html
ahn_pc html
ahn_point html
create_area html
create_bbox_polygon html
create_spatialpoint html
create_wcs_url html
download_bladnrs html
download_dsm html
download_dtm html
download_pointCloud html
download_wcs_raster html
extract_elevation html
generate_ahn_point html
generate_lowres_ahn_points html
get_ahn_letter html
get_ahn_sheets html
get_dem html
get_resolution html
get_surrounding_ahn html
read_pc html
trim_name html
write_pc html
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
DONE (rAHNextract)
That looks like it is here!
ahn_point(name = "Utrecht point", X = 136550, Y = 456060)
Error in ahn_point(name = "Utrecht point", X = 136550, Y = 456060) :
could not find function "ahn_point"
ahn_point(X = 136550, Y = 456060)
Error in ahn_point(X = 136550, Y = 456060) :
could not find function "ahn_point"
ahn_point
[1] "Download raster image succeeded."
[1] "Intersecting raster. Getting elevation..."
[1] "Elevation of Utrecht point: 7.38 m."
[1] 7.38
Warning messages:
1: In CPL_crs_from_input(x) :
GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
2: In .local(x, y, ...) :
Transforming SpatialPoints to the CRS of the Raster