{"id":23611326,"url":"https://github.com/janmarvin/readsas","last_synced_at":"2026-02-07T01:20:14.243Z","repository":{"id":48453912,"uuid":"212976212","full_name":"JanMarvin/readsas","owner":"JanMarvin","description":"Read the SAS file formats ","archived":false,"fork":false,"pushed_at":"2026-02-05T21:35:15.000Z","size":295,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T05:13:50.927Z","etag":null,"topics":["r","r-package","rcpp","reader","sas","sas7bdat"],"latest_commit_sha":null,"homepage":"https://janmarvin.github.io/readsas","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JanMarvin.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-05T09:43:57.000Z","updated_at":"2026-02-05T21:27:11.000Z","dependencies_parsed_at":"2024-04-02T18:55:12.814Z","dependency_job_id":"bd396992-d571-4b4d-abce-b57488c59eb5","html_url":"https://github.com/JanMarvin/readsas","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/JanMarvin/readsas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadsas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadsas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadsas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadsas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanMarvin","download_url":"https://codeload.github.com/JanMarvin/readsas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadsas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29183615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"ssl_error","status_checked_at":"2026-02-07T00:35:01.758Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","r-package","rcpp","reader","sas","sas7bdat"],"created_at":"2024-12-27T16:14:06.856Z","updated_at":"2026-02-07T01:20:14.191Z","avatar_url":"https://github.com/JanMarvin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  out.width = \"100%\"\n)\nlibrary(readsas)\n```\n\n# readsas \n\u003c!-- badges: start --\u003e\n![R-CMD-check](https://github.com/JanMarvin/readspss/workflows/R-CMD-check/badge.svg)\n[![Codecov test coverage](https://codecov.io/gh/JanMarvin/readsas/branch/main/graph/badge.svg)](https://app.codecov.io/gh/JanMarvin/readsas?branch=main) [![readsas status badge](https://janmarvin.r-universe.dev/badges/readsas)](https://janmarvin.r-universe.dev/readsas)\n\u003c!-- badges: end --\u003e\n\nR package using Rcpp to parse a SAS file into a data.frame(). Currently \n`read.sas` is the main function and feature of this package.\n\nThe package allows (experimental) reading of sas7bdat files that are\n\n* (un)compressed\n\nAs with other releases of the `read` series, focus is again on being as \naccurate as possible. Speed is welcome, but a secondary goal.\n\n## Installation\n\nWith `remotes`:\n``` r\nremotes::install_github(\"JanMarvin/readsas\")\n```\n\nWith `r-universe`:\n``` r\noptions(repos = c(\n  janmarvin = 'https://janmarvin.r-universe.dev',\n  CRAN = 'https://cloud.r-project.org'))\ninstall.packages('readsas')\n```\n\n\n## Basic usage\n```{r}\nfl \u003c- system.file(\"extdata\", \"cars.sas7bdat\", package = \"readsas\")\n\ndd \u003c- read.sas(fl)\n\nhead(dd)\n```\n\n## Select columns or rows\nThis should be much faster, since unselected cells of the entire data frame are skipped when reading, and it is memory efficient to load only specific columns or rows. However, the file header is always read in its entirety. If the file header is large enough, it will still take some time to read.\n\n```{r}\nfl \u003c- system.file(\"extdata\", \"mtcars.sas7bdat\", package = \"readsas\")\n\ndd \u003c- read.sas(fl, select.cols = c(\"VAR1\", \"mpg\", \"hp\"),\n               select.rows = c(2:5), rownames = TRUE)\n\nhead(dd)\n```\n\n## Thanks\n\nThe documentation of the sas7bdat package by Matt Shotwell and Clint Cummins in\ntheir R package [`sas7bdat`](https://github.com/BioStatMatt/sas7bdat), by \nJared Hobbs for the python library \n[`sas7bdat`](https://bitbucket.org/jaredhobbs/sas7bdat/src/master/), and by EPAM in \nthe Java library [`parso`](https://github.com/epam/parso) was crucial.\nWithout their decryption of the SAS format, this package would not have been\npossible.\n\nFurther testing was done using the R package \n[`haven`](https://github.com/tidyverse/haven) by Hadley Wickam and Evan Miller.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmarvin%2Freadsas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanmarvin%2Freadsas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmarvin%2Freadsas/lists"}