{"id":16572065,"url":"https://github.com/eddelbuettel/rcppapt","last_synced_at":"2025-03-16T20:31:17.953Z","repository":{"id":27470467,"uuid":"30949732","full_name":"eddelbuettel/rcppapt","owner":"eddelbuettel","description":"Rcpp Interface to the APT Package Manager","archived":false,"fork":false,"pushed_at":"2025-02-22T14:32:39.000Z","size":312,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T05:31:43.501Z","etag":null,"topics":["apt","cran","libapt-pkg","r","r-package"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddelbuettel.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"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}},"created_at":"2015-02-18T03:00:40.000Z","updated_at":"2025-02-22T14:32:43.000Z","dependencies_parsed_at":"2024-02-25T02:34:27.877Z","dependency_job_id":"5b571961-fedd-4dc9-bfc6-9d6b04f2db36","html_url":"https://github.com/eddelbuettel/rcppapt","commit_stats":{"total_commits":108,"total_committers":1,"mean_commits":108.0,"dds":0.0,"last_synced_commit":"4998a16a05642867efa066ee60ed2b8397f6d889"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Frcppapt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Frcppapt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Frcppapt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Frcppapt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddelbuettel","download_url":"https://codeload.github.com/eddelbuettel/rcppapt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243928330,"owners_count":20370272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apt","cran","libapt-pkg","r","r-package"],"created_at":"2024-10-11T21:26:11.646Z","updated_at":"2025-03-16T20:31:16.966Z","avatar_url":"https://github.com/eddelbuettel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## RcppAPT: Rcpp Interface to APT Package Manager\n\n[![CI](https://github.com/eddelbuettel/rcppapt/workflows/ci/badge.svg)](https://github.com/eddelbuettel/rcppapt/actions?query=workflow%3Aci)\n[![License](https://eddelbuettel.github.io/badges/GPL2+.svg)](https://www.gnu.org/licenses/gpl-2.0.html)\n[![CRAN](https://www.r-pkg.org/badges/version/RcppAPT)](https://cran.r-project.org/package=RcppAPT)\n[![Downloads](https://cranlogs.r-pkg.org/badges/RcppAPT?color=brightgreen)](https://www.r-pkg.org:443/pkg/RcppAPT)\n[![Code Coverage](https://img.shields.io/codecov/c/github/eddelbuettel/rcppapt/master.svg)](https://app.codecov.io/github/eddelbuettel/rcppapt)\n[![Last Commit](https://img.shields.io/github/last-commit/eddelbuettel/rcppapt)](https://github.com/eddelbuettel/rcppapt)\n\n### Background\n\n[Debian](https://www.debian.org) and its derivatives like\n[Ubuntu](https://ubuntu.com/) utilize a powerful package managing backend /\nfrontend combination in APT (A Packaging Tool).  Accessible at the\ncommand-line via front-ends `apt`, `apt-get`, `apt-cache`, ... as well as\nnumerous GUI variants, it is implemented using a library `libapt-pkg`.  This\nsmall package provides [R](https://www.r-project.org) with access to this\nlibrary via [Rcpp](https://dirk.eddelbuettel.com/code/rcpp.html).\n\n### Examples\n\nWe can query packages by regular expression:\n\n```{.r}\nR\u003e library(RcppAPT)\nR\u003e getPackages(\"^r-base-.\")\n```\n\nwhich returns a data frame with name, version (if installed) and section.\n\nWe can also check for installability of a given package or set of packages:\n\n```{.r}\nR\u003e hasPackages(c(\"r-cran-rcpp\", \"r-cran-rcppapt\"))\n   r-cran-rcpp r-cran-rcppapt\n          TRUE          FALSE\nR\u003e\n```\n\nwhich shows that [Rcpp](http://dirk.eddelbuettel.com/code/rcpp.html) is (of\ncourse) available, but this (very new) package is (unsurprisingly) not\navailable pre-built.\n\nMoreover, we can look at the package information of a given package.\nThe `buildDepends()` function extracts just the build dependencies:\n\n```{.r}\nR\u003e buildDepends(\"r-cran-rcppeigen\")\n[1] \"debhelper\"        \"r-base-dev\"       \"cdbs\"\n[4] \"r-cran-rcpp\"      \"r-cran-matrix\"    \"r-cran-pkgkitten\"\nR\u003e\n```\n\nThe `showSrc()` and `dumpPackages()` functions display even more information.\n\nWe can also look at reverse dependencies:\n\n```{.r}\nR\u003e reverseDepends(\"r-cran-rcpp$\")\n               package  version\n1  r-cran-surveillance\n2     r-cran-rquantlib   0.11.0\n3      r-cran-reshape2\n4        r-cran-readxl\n5     r-cran-rcppeigen 0.11.0-1\n6 r-cran-rcpparmadillo   0.11.0\n7          r-cran-plyr\n8         r-cran-minqa   0.11.0\nR\u003e\n```\n\n### Status\n\nThe package is still fairly small, and functionality is (currently) limited\nto the examples shown above.  It builds reliably on the supported systems.\n\nBut `libapt-pkg` is pretty mature, and feature-rich, so this package acts\nmostly as a wrapper from R.\n\n### Installation\n\nThe package is on [CRAN](https://cran.r-project.org) so a very standard\n\n```{.r}\ninstall.packages(\"RcppAPT\")\n```\n\nwill do. Make sure you install the\n[libapt-pkg-dev](https://packages.debian.org/sid/libapt-pkg-dev)\npackage first as it is a build-dependency.\n\nVersions of the package may also be available via\n[drat](http://dirk.eddelbuettel.com/code/drat.html) via:\n\n```{.r}\ndrat:::add(\"eddelbuettel\")\ninstall.packages(\"RcppAPT\")\n```\n\n\n### Author\n\nDirk Eddelbuettel\n\n### License\n\nGPL (\u003e= 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddelbuettel%2Frcppapt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddelbuettel%2Frcppapt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddelbuettel%2Frcppapt/lists"}