Package {TEMPO}


Type: Package
Title: Tools for Romania's National Institute of Statistics Tempo Data
Version: 0.1.0
Maintainer: Marian Necula <marian.necula00@gmail.com>
Description: Download table metadata and data from the Romanian National Institute of Statistics' TEMPO Online database. Tables can be listed in Romanian or English and downloaded as CSV files.
License: GPL-3 | EUPL-1.1
URL: https://github.com/RProjectRomania/TEMPO
BugReports: https://github.com/RProjectRomania/TEMPO/issues
Depends: R (≥ 3.6)
Imports: curl (≥ 5.0.0), jsonlite (≥ 1.7.0)
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Config/testthat/edition: 3
VignetteBuilder: knitr
Encoding: UTF-8
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2026-09-23 07:22:27 UTC; Marian
Author: Marian Necula [aut, cre], Bogdan Oancea [aut], Ana Maria Tiru [aut]
Repository: CRAN
Date/Publication: 2026-10-02 12:20:02 UTC

TEMPO: Access Romanian National Institute of Statistics Data

Description

List and download tables from the Romanian National Institute of Statistics TEMPO Online database.

Author(s)

Maintainer: Marian Necula marian.necula00@gmail.com

Authors:

See Also

Useful links:


Download complete TEMPO Online tables

Description

Downloads one or more complete tables from the Romanian National Institute of Statistics TEMPO Online database as CSV files.

Usage

tempo_bulk(codes, language = "ro", directory)

Arguments

codes

A character vector (or list) of TEMPO matrix codes, such as "ACC101B". Use tempo_toc() to discover available codes.

language

A single string: "ro" for Romanian (the default) or "en" for English.

directory

A single path for the downloaded CSV files. The directory is created when needed.

Details

Large dimensions are requested in sequential chunks to avoid exceeding the TEMPO service's query limit. The function writes only to directory and needs an internet connection.

Value

The paths of newly downloaded files, invisibly. Existing requested files are skipped when their modification date is at least as recent as the matrix's published update date.

Examples

## Not run: 
data_directory <- file.path(tempdir(), "tempo-data")
files <- tempo_bulk("ACC101B", language = "en", directory = data_directory)

## End(Not run)

List tables available from TEMPO Online

Description

Retrieves the table of contents for the Romanian National Institute of Statistics TEMPO Online database.

Usage

tempo_toc(full_description = FALSE, language = "ro")

Arguments

full_description

A single logical value. If TRUE, retrieve the domain, sub-domain, survey name, and last-update date for every table. This makes one additional request per table and can take several minutes.

language

A single string: "ro" for Romanian (the default) or "en" for English.

Details

The function needs an internet connection. It reports an informative error when the TEMPO Online service cannot be reached or returns an unexpected response.

Value

A data frame with name and code columns. With full_description = TRUE, it additionally contains Statistical_domain, Statistical_sub_domain, Survey_name, and Last_update.

Examples

## Not run: 
tables <- tempo_toc(language = "en")
head(tables)

## End(Not run)