{"id":19891818,"url":"https://github.com/inbo/inbodb","last_synced_at":"2026-05-14T10:36:15.695Z","repository":{"id":43187844,"uuid":"255536970","full_name":"inbo/inbodb","owner":"inbo","description":"Connect to and retrieve data from databases on the INBO server","archived":false,"fork":false,"pushed_at":"2025-02-13T22:13:07.000Z","size":4135,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-02-13T23:26:02.640Z","etag":null,"topics":["database","package","r"],"latest_commit_sha":null,"homepage":"https://inbo.github.io/inbodb/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inbo.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-14T07:13:26.000Z","updated_at":"2024-08-22T14:22:14.000Z","dependencies_parsed_at":"2024-01-04T17:51:34.094Z","dependency_job_id":"c03bc521-36fb-4151-9fd5-c02e8f2029cc","html_url":"https://github.com/inbo/inbodb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inbo%2Finbodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inbo%2Finbodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inbo%2Finbodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inbo%2Finbodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inbo","download_url":"https://codeload.github.com/inbo/inbodb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241318717,"owners_count":19943386,"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":["database","package","r"],"created_at":"2024-11-12T18:19:42.155Z","updated_at":"2026-05-14T10:36:15.690Z","avatar_url":"https://github.com/inbo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- badges: start --\u003e\n\n[![Project Status: Active – The project has reached a stable, usable\nstate and is being actively\ndeveloped.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Lifecycle:stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n![GitHub](https://img.shields.io/github/license/inbo/inbodb)\n[![Release](https://img.shields.io/github/release/inbo/inbodb.svg)](https://github.com/inbo/inbodb/releases)\n[![R build status](https://github.com/inbo/inbodb/actions/workflows/check_on_main.yml/badge.svg)](https://github.com/inbo/inbodb/actions)\n![r-universe\nname](https://inbo.r-universe.dev/badges/:name?color=c04384)\n![r-universe package](https://inbo.r-universe.dev/badges/inbodb)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/inbo/inbodb.svg)\n![GitHub repo size](https://img.shields.io/github/repo-size/inbo/inbodb.svg)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6353907.svg)](https://doi.org/10.5281/zenodo.6353907)\n\u003c!-- badges: end --\u003e\n\n# inbodb \u003cimg src=\"man/figures/hexsticker.svg\" align=\"right\" alt=\"A hexagon with the word inbodb\" width=\"120\" /\u003e\n\nConnect to and retrieve data from databases on the INBO server\n\n# Installation\n  \nTo install `inbodb` from the [INBO universe](https://inbo.r-universe.dev/builds),\nstart a new R session and run this code (before loading any packages):\n\n```r\n# Enable the INBO universe (not needed for INBO employees, as this is the default setting)\noptions(\n  repos = c(\n    inbo = \"https://inbo.r-universe.dev\", CRAN = \"https://cloud.r-project.org\"\n  )\n)\n# Install the packages\ninstall.packages(\"inbodb\")\n```\n\nTo install `inbodb` from GitHub, start a new R session and run this code (before loading any packages):\n\n```r\n#install.packages(\"remotes\")\nremotes::install_github(\"inbo/inbodb\")\n```\n\n# Use `inbodb`\n\nThe main function, `connect_inbo_dbase()`, makes a connection to an INBO database by simply providing the database's name as an argument (when connected to the INBO network).\nAfter making this connection, a Connections pane in RStudio shows an overview of the INBO databases, in which database contents can be explored by clicking on the icons.\n\nThe connection allows to download or query data from the database using functions of packages [DBI](https://dbi.r-dbi.org/) and [dbplyr](https://dbplyr.tidyverse.org/).\nSome of the `DBI` functions have extra functionality in `inbodb`, for instance `dbDisconnect()` will also close the Connections pane in RStudio in addition to closing the connection.\nOther functions may give more informative errors or (temporarily) fix small technical issues in addition to the DBI functionality, to ensure smooth access to the INBO databases.\n\nSome code examples:\n\n```r\n# load packages\nlibrary(inbodb)\nlibrary(DBI)\n\n# open database connection\ncon \u003c- connect_inbo_dbase(\"D0152_00_Flora\")\n\n# read a whole table\ndbReadTable(con, \"Bron\")\n\n# query a database using a SQL query\ndbGetQuery(con, \"SELECT ID, Code, Beschrijving FROM Bron\")\n\n# compose a query using R-code and dbplyr\nlibrary(dplyr)\ntbl(con, \"Bron\") |\u003e\n  select(\"ID\", \"Code\", \"Beschrijving\") |\u003e\n  collect()\n\n# close the connection\ndbDisconnect(con)\n\n# convert column names of an imported dataset to snake_case\njanitor::clean_names(dataset)\n```\n\nAs databases can be rather complex, we also wrote manuals and functions to easily retain data from some databases:\n\n- [`Florabank`](https://www.vlaanderen.be/inbo/datasets/florabank/) (see description of [functions under 'Reference'](https://inbo.github.io/inbodb/reference/index.html))\n- [`INBOveg`](https://www.vlaanderen.be/inbo/datasets/inboveg/) (see `vignette(\"get_data_inboveg\", package = \"inbodb\")` and [functions](https://inbo.github.io/inbodb/reference/index.html))\n- [`meetnetten.be`](https://www.vlaanderen.be/inbo/datasets/meetnettenbe/) (see `vignette(\"get_data_meetnetten\", package = \"inbodb\")` and [functions](https://inbo.github.io/inbodb/reference/index.html))\n- `taxonlijsten` (see `vignette(\"get_data_taxonlijsten\", package = \"inbodb\")` and [functions](https://inbo.github.io/inbodb/reference/index.html))\n\nSome other databases have functions in a dedicated R package to retain or analyse data, e.g.\n\n- [`LSVIHabitatTypes`](https://inbo.github.io/LSVI/)\n- [`watina`](https://inbo.github.io/watina/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finbo%2Finbodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finbo%2Finbodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finbo%2Finbodb/lists"}