Package Installation

Hallo,
ich möchte folgendes Beispiel ausführen:
wfs_regions <- "https://geoservices.krzn.de/security-proxy/services/wfs_kkle_alkis_adv_vereinfacht?"
url <- parse_url(wfs_regions)
url$query <- list(service = "wfs",
version = "2.0.0",
request = "GetFeature",
typename = "regions",
srsName = "EPSG:25832",
outputFormat = "GEOJSON")
request <- build_url(url)
ALKIS_1<- read_sf(request)

Ich bekomme allerdings immer folgende Fehlermeldung:

install.packages("httr")
Installing package into ‘C:/Users/mueck/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/httr_1.4.2.zip'
Content type 'application/zip' length 515846 bytes (503 KB)
downloaded 503 KB

package ‘httr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\mueck\AppData\Local\Temp\Rtmpm4weyY\downloaded_packages

url <- parse_url(wfs_regions)
Fehler in parse_url(wfs_regions) :
konnte Funktion "parse_url" nicht finden

Obwohl ich das richtige Package installiert habe funktioniert es nicht.
Hat jemand einen Lösungsvorschlag. Ich bin leider Anfänger in Thema R/RStudio.
Grüße, RL

Besides installing the package (once) you have to load it (on each new R session). Packages are loaded with the library() command.

library(httr)
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.