Package: nettskjemar 1.0.4

nettskjemar: Connect to the 'nettskjema.no' API of the University of Oslo

Enables users to retrieve data, meta-data, and codebooks from <https://nettskjema.no/>. The data from the API is richer than from the online data portal. This package is not developed by the University of Oslo IT. Mowinckel (2021) <doi:10.5281/zenodo.4745481>.

Authors:Athanasia Mo Mowinckel [aut, cre], Trym Nohr Fjørtoft [ctb]

nettskjemar_1.0.4.tar.gz
nettskjemar_1.0.4.zip(r-4.7)nettskjemar_1.0.4.zip(r-4.6)nettskjemar_1.0.4.zip(r-4.5)
nettskjemar_1.0.4.tgz(r-4.6-any)nettskjemar_1.0.4.tgz(r-4.5-any)
nettskjemar_1.0.4.tar.gz(r-4.7-any)nettskjemar_1.0.4.tar.gz(r-4.6-any)
nettskjemar_1.0.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
nettskjemar/json (API)

# Install 'nettskjemar' in R:
install.packages('nettskjemar', repos = c('https://drmowinckels.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/capro-uio/nettskjemar/issues

On CRAN:

Conda:

6.34 score 2 stars 34 scripts 606 downloads 28 exports 15 dependencies

Last updated from:261260e251. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK168
source / vignettesOK194
linux-release-x86_64OK132
macos-release-arm64OK92
macos-oldrel-arm64OK88
windows-develOK100
windows-releaseOK79
windows-oldrelOK88
wasm-releaseOK113

Exports:has_codebookns_add_labelsns_alter_checkboxns_api_docsns_clientns_create_clientns_get_attachmentns_get_codebookns_get_datans_get_form_attachmentsns_get_form_reportsns_get_formsns_get_mens_get_metans_get_submissionns_get_submission_attachmentsns_get_submissionsns_get_tokenns_has_authns_list_form_attachmentsns_list_submission_attachmentsns_reqns_sitrepns_validate_client_idns_validate_client_patternns_validate_client_secretns_write_codebookns_write_meta

Dependencies:askpassclicurlgluehttr2jsonlitelifecyclemagrittropensslR6rappdirsrlangsysvctrswithr

Authentication Setup for Nettskjema API
Setting Up Authentication | Setting up a client | Add Credentials to Your .Renviron File | Check your Situation report | Accessing forms | Working with the client | Renewing the client secret | Adding colleagues | Troubleshooting | More information

Last update: 2025-09-08
Started: 2025-03-17

Building custom requests
Understanding the basics of APIs | Setting up a custom GET request | Setting up a custom POST request

Last update: 2025-09-08
Started: 2025-06-15

Attachments: Download and Save
Overview | Listing Attachments | Listing attachments for a specific submission | Listing all attachments for a form | Downloading Attachments | Saving All Attachments | For a Single Submission | For an Entire Form | Summary

Last update: 2025-09-08
Started: 2025-03-17

Enhanced Workflow with Labelled Data
Introduction to using Labelled data | Getting labelled data from nettskjemar | Exploring Labelled Data with | Inspecting Labels | Modifying Labels | Benefits of Using Labelled Data

Last update: 2025-09-08
Started: 2025-03-17

Fetching Information on Forms
Overview | Prerequisites | Retrieving All Available Forms | Example: Getting Forms | Retrieving Raw Form Data | Downloading Form Reports | Example: Download a CSV Report | Example: Download an Excel Report | Example: Save SPSS Report to a Custom Path | Custom Output Paths

Last update: 2025-09-04
Started: 2025-03-17

Handling Submissions with the Nettskjema API
Overview | Getting an Individual Submission Answer: ns_get_submission | Example: Fetch an Individual Submission

Last update: 2025-09-04
Started: 2025-03-17

Using nettskjemar
General recommendations | Tidyverse compatible | Download submissions | Fetching Raw Data | Controlling checkbox output

Last update: 2025-09-04
Started: 2020-10-15

Working with Nettskjema Form Metadata
Overview | Prerequisites | Retrieving Metadata for a Form: ns_get_meta | Example: Retrieve Metadata | Exploring the Metadata Object | Example: Access Specific Metadata Fields | Saving Metadata to a File: ns_write_meta | Example: Save Metadata as a JSON File | Example: Save Metadata to a Custom Path | Example: Use Custom JSON Formatting Options

Last update: 2025-09-04
Started: 2025-03-17

Readme and manuals

Help Manual

Help pageTopics
Check if form has codebookhas_codebook
Add Labels to Datasetns_add_labels
Alter checkbox matrix variables in a datasetns_alter_checkbox
Access Nettskjema API Documentationns_api_docs
Create an OAuth2 Client for Nettskjema APIns_client
Create a Nettskjema Clientns_create_client
Save Nettskjema attachments to filens_get_attachment
Get codebook for a formns_get_codebook
Get data from a formns_get_data ns_get_submissions
Retrieve all attachments associated with a Nettskjemans_get_form_attachments
Download files associated with a formns_get_form_reports
Get all forms you have access tons_get_forms
Information about the current userns_get_me
Get metadata for a formns_get_meta
Get an individual submission answerns_get_submission
Get Nettskjema attachments for a submissionns_get_submission_attachments
Get Current Nettskjema Access Tokenns_get_token
Check Environment Variables for Nettskjema Authenticationns_has_auth
Retrieve all attachments associated with a Nettskjemans_list_form_attachments
List Nettskjema attachments for a submissionns_list_submission_attachments
Basic Nettskjema httr2 requestns_req
Authenticate Nettskjema requestns_req_auth
Nettskjema API Sitrepns_sitrep
Validate Nettskjema Client Patternns_validate_client_id ns_validate_client_pattern ns_validate_client_secret
Write codebook to filens_write_codebook ns_write_codebook.default ns_write_codebook.ns_codebook ns_write_codebook.ns_codebook_raw
Write meta-data to filens_write_meta ns_write_meta.default ns_write_meta.ns_meta