{"id":14066797,"url":"https://github.com/sellorm/rspmapi","last_synced_at":"2025-02-23T19:29:53.565Z","repository":{"id":80263406,"uuid":"468875999","full_name":"sellorm/rspmapi","owner":"sellorm","description":"R Wrapper Around The RStudio Package Manager API","archived":false,"fork":false,"pushed_at":"2022-03-30T17:10:46.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T12:12:36.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sellorm.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}},"created_at":"2022-03-11T19:29:41.000Z","updated_at":"2022-05-17T23:36:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cc7c100-1c4f-4707-bb99-ee000e0cf92b","html_url":"https://github.com/sellorm/rspmapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sellorm%2Frspmapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sellorm%2Frspmapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sellorm%2Frspmapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sellorm%2Frspmapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sellorm","download_url":"https://codeload.github.com/sellorm/rspmapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367707,"owners_count":19790301,"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":[],"created_at":"2024-08-13T07:05:15.978Z","updated_at":"2025-02-23T19:29:53.515Z","avatar_url":"https://github.com/sellorm.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# rspmapi\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThe `rspmapi` package implements an R wrapper around the RStudio Package Manager API.\n\n## Installation\n\nYou can install the development version of `rspmapi` from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"sellorm/rspmapi\")\n```\n\n## Example\n\nIn order to use any of the supplied functions, you must first connect to your\nPackage Manager instance:\n\n```{r connection}\nlibrary(rspmapi)\nrspm \u003c- instance(\"https://packagemanager.rstudio.com\")\n```\n\nOnce you have an RSPM instance object, you can use it to perform API operations.\n\nEach API endpoint has a corresponding function in `rspmapi`.\n\n```{r status}\nresult \u003c- rspm %\u003e% \n  status()\nresult$version\n```\n\nSome of the functions take additional arguments:\n\n```{r sources}\nresult \u003c- rspm %\u003e% \n  repos_sources(id = 1)\nresult[[1]]$created\n```\n\nSome functions can optionally take additional query string parameters. These are\ndocumented in the \n[RSPM API docs](https://packagemanager.rstudio.com/__api__/swagger/index.html)\nfor each API call.\n\n```{r params}\nparams \u003c- list(`_limit` = 5, `_page` = 2, name_like = \"shiny\")\nresult \u003c- rspm %\u003e% \n  sources_packages(id = 1, params = params)\nunlist(lapply(result, function(x){x$name}))\n```\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsellorm%2Frspmapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsellorm%2Frspmapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsellorm%2Frspmapi/lists"}