Skip to content

geofi

Access Finnish Geospatial Data

v1.2.1 · Apr 2, 2026 · BSD_2_clause + file LICENSE

Description

Designed to simplify geospatial data access from the Statistics Finland Web Feature Service API <https://geo.stat.fi/geoserver/index.html>, the geofi package offers researchers and analysts a set of tools to obtain and harmonize administrative spatial data for a wide range of applications, from urban planning to environmental research. The package contains annually updated time series of municipality key datasets that can be used for data aggregation and language translations.

Downloads

CRAN

679

Last 30 days

4675th

2K

Last 90 days

5.8K

Last year

Trend: +1.7% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

62

Last 90 days

203

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

1

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘geofi_datasets.Rmd’ using rmarkdown
--- finished re-building ‘geofi_datasets.Rmd’

--- re-building ‘geofi_geocoding.Rmd’ using rmarkdown
--- finished re-building ‘geofi_geocoding.Rmd’

--- re-
...[truncated]...
analysis.Rmd’

--- re-building ‘geofi_statfi_ogc.Rmd’ using rmarkdown
--- finished re-building ‘geofi_statfi_ogc.Rmd’

SUMMARY: processing the following file failed:
  ‘geofi_spatial_analysis.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 21, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 20, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘geofi-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wfs_api
> ### Title: WFS API
> ### Aliases: wfs_api
> 
> ### ** Examples
> 
>   wfs_api(base_url = "http
...[truncated]...
fetch_memory(url, handle = handle) : 
  Timeout was reached [geo.stat.fi]:
Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds
Calls: wfs_api ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 3, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-devel-macos-arm64

examples

Running examples in ‘geofi-Ex.R’ failed
The error most likely occurred in:

> ### Name: wfs_api
> ### Title: WFS API
> ### Aliases: wfs_api
> 
> ### ** Examples
> 
>   wfs_api(base_url = "http://geo.stat.fi/geoserver/wfs",
+           queries = appen
...[truncated]...
500k_2017
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached [geo.stat.fi]:
Resolving timed out after 10004 milliseconds
Calls: wfs_api ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 19, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 13, 2026
ERROR r-devel-linux-x86_64-debian-clang

examples

Running examples in ‘geofi-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wfs_api
> ### Title: WFS API
> ### Aliases: wfs_api
> 
> ### ** Examples
> 
>   wfs_api(base_url = "http
...[truncated]...
oserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017
Error in read_xml.raw(resp$content) : 
  Space required after the Public Identifier [65]
Calls: wfs_api -> <Anonymous> -> read_xml.raw
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

8,235

Files

159

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,699 (44.9%)Tests 83 (1%)Docs 2,796 (34%)Vignettes 1,657 (20.1%)

API

Exported functions

17

Internal functions

5

Recent export changes

v1.1.0+9 geocode, geocode_reverse, municipality_central_localities +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.02

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

94.1%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

9.1%

Secret pattern count

18

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

BSD_2_clause + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

21

First release

2021-02-25

Latest release

2026-04-02

Avg cadence

72 days

Cold removal rate

Dep drift

3

LOC over versions

v1.0.0: 3,927 LOCv1.0.1: 3,936 LOCv1.0.2: 3,945 LOCv1.0.3: 4,040 LOCv1.0.4: 4,080 LOCv1.0.5: 4,080 LOCv1.0.6: 4,452 LOCv1.0.7: 4,587 LOCv1.0.8: 4,589 LOCv1.0.9: 4,775 LOCv1.0.10: 4,526 LOCv1.0.11: 4,533 LOCv1.0.13: 4,515 LOCv1.0.14: 4,651 LOCv1.0.15: 4,741 LOCv1.0.16: 4,785 LOCv1.0.17: 4,793 LOCv1.0.18: 4,905 LOCv1.1.0: 8,029 LOCv1.2.0: 8,240 LOCv1.2.1: 8,235 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr httpcache httr httr2 jsonlite purrr rlang sf xml2 yaml geofi

Version History

22 tracked
updated 1.2.1 ← 1.2.0 diff Apr 2, 2026
new 1.2.0 Mar 10, 2026
updated 1.2.0 ← 1.1.0 diff Mar 1, 2026
updated 1.1.0 ← 1.0.18 diff Apr 28, 2025
updated 1.0.18 ← 1.0.17 diff Feb 10, 2025
updated 1.0.17 ← 1.0.16 diff Nov 21, 2024
updated 1.0.16 ← 1.0.15 diff Aug 18, 2024
updated 1.0.15 ← 1.0.14 diff Mar 12, 2024
updated 1.0.14 ← 1.0.13 diff Feb 4, 2024
updated 1.0.13 ← 1.0.11 diff Jan 23, 2024
updated 1.0.11 ← 1.0.10 diff Dec 17, 2023
updated 1.0.10 ← 1.0.9 diff Nov 1, 2023
updated 1.0.9 ← 1.0.8 diff Apr 15, 2023
updated 1.0.8 ← 1.0.7 diff Feb 15, 2023
updated 1.0.7 ← 1.0.6 diff Oct 22, 2022