Skip to content

text2sdg

Detecting UN Sustainable Development Goals in Text

v1.1.2 · Sep 8, 2025 · GPL-3

Description

The United Nations' Sustainable Development Goals (SDGs) have become an important guideline for organisations to monitor and plan their contributions to social, economic, and environmental transformations. The 'text2sdg' package is an open-source analysis package that identifies SDGs in text using scientifically developed query systems, opening up the opportunity to monitor any type of text-based data, such as scientific output or corporate publications. For more information see Meier, Mata & Wulff (2025) <doi:10.32614/RJ-2024-005> and Wulff, Meier & Mata (2024) <doi:10.1007/s11625-024-01516-3>.

Downloads

CRAN

718

Last 30 days

4602nd

2.3K

Last 90 days

13.4K

Last year

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

r2u CRAN

2

Last 30 days

25

Last 90 days

125

Last year

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

autoCRAN

4

Last 7 days

26

Last 30 days

2

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

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/text2sdg.Rcheck/00install.out’ for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘corpustools’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,433

Files

56

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,366 (56.1%)Tests 292 (12%)Docs 565 (23.2%)Vignettes 210 (8.6%)

API

Exported functions

6

Internal functions

10

Recent export changes

v1.0.0+1 detect_sdg_systems

Testing & CI

Has tests

Yes

Test-to-code ratio

0.21

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

100%

Roxygen coverage

83.3%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

20%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

10

First release

2021-10-12

Latest release

2025-09-08

Avg cadence

46 days

Cold removal rate

Dep drift

3

LOC over versions

v0.1.0: 1,645 LOCv0.1.1: 1,643 LOCv0.1.2: 1,659 LOCv0.1.3: 1,644 LOCv0.1.4: 1,645 LOCv0.1.5: 1,655 LOCv0.1.6: 1,645 LOCv1.0.0: 1,963 LOCv1.1.1: 2,407 LOCv1.1.2: 2,433 LOC

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

Dependency Network

Dependencies Reverse dependencies magrittr dplyr corpustools tidyr tibble stringr ggplot2 lifecycle ranger text2sdgData text2sdg

Version History

11 tracked
new 1.1.2 Mar 10, 2026
updated 1.1.2 ← 1.1.1 diff Sep 7, 2025
updated 1.1.1 ← 1.0.0 diff Mar 16, 2023
updated 1.0.0 ← 0.1.6 diff Jan 23, 2023
updated 0.1.6 ← 0.1.5 diff Sep 7, 2022
updated 0.1.5 ← 0.1.4 diff Aug 29, 2022
updated 0.1.4 ← 0.1.3 diff Jul 14, 2022
updated 0.1.3 ← 0.1.2 diff May 30, 2022
updated 0.1.2 ← 0.1.1 diff Nov 29, 2021
updated 0.1.1 ← 0.1.0 diff Nov 6, 2021
new 0.1.0 Oct 11, 2021