Learn R Programming

Mica R

R package for accessing Mica2 web services:

  • search any type of documents (variable, dataset, study, population, dce (datacollection event), network)
  • search taxonomy vocabularies and terms
  • get data access requests form configuration and listing for reporting

Installation

# Install from CRAN
install.package("micar")

Usage

Steps:

  • open connection to Mica server
  • extract and process documents
  • close connection with Mica server

Examples:

Copy Link

Version

Install

install.packages('micar')

Monthly Downloads

170

Version

1.2.0

License

GPL-3

Maintainer

Yannick Marcon

Last Published

February 6th, 2026

Functions in micar (1.2.0)

.reportListMetrics

Display search result metrics
mica.dar.amendments

Get amendments
mica.dar.amendments.history

Get amendments history
mica.dar.form

Get the data access request form
mica.variables

Get the variables
.url

Utility method to build urls. Concatenates all arguments and adds a '/' separator between each element
mica.taxonomies

Get the taxonomies
mica.networks

Get the networks
mica.studies

Get the studies
mica.dar.history

Get data access request history
mica.login

Open connection with Mica
mica.logout

Close connection with Mica
mica.dar.preliminaries

Get the data access requests preliminary form
rqlNode

New RQL node
mica.vocabularies

Get the vocabularies
mica.dar.amendment

Get a amendment
mica.study.dces

Get the study data collection events
mica.dar.preliminary.history

Get data access request history preliminary form
mica.dar.amendment.form

Get the data access request amendment form
mica.dar.preliminary

Get a data access request preliminary form
mica.study.populations

Get the study populations
.authToken

Constructs the value for the Authorization header
mica.dar.actions

Get data access request actions
mica.dar.agreements

Get a data access requests agreement forms
mica.dar

Get a data access request
mica.dars

Get the data access requests main form
mica.datasets

Get the datasets
.verbose

Verbose flag
.extractLabel2

Extract label for locale. If not found, fallback to undefined language label (if any).
.append.rql

Insert some RQL statements to perform the query. TODO parse RQL properly!
.extractMicaSessionId

Extract micasid from cookie data frame.
.darStatusDTOToDF

Make a list of StatusChange DTOs a data frame (applies to DARs and their amendments)
.handleResponse

Default request response handler.
.extractLabel

Extract label for locale. If not found, fallback to undefined language label (if any).
.get

Issues a GET request to mica for the specified resource
.darDTOToDF

Make a list of DataAccessRequest DTOs a data frame (applies to DARs and their amendments)
.flatten

Flatten a list hierarchy
.as.rql

Utility method to build RQL atomic statement.
.post

Issues a POST form request to mica for the specified resource
mica.dar.amendment.history

Get amendment history