{"id":32202639,"url":"https://github.com/tgve/tgver","last_synced_at":"2026-03-01T04:34:08.505Z","repository":{"id":43009911,"uuid":"424921823","full_name":"tgve/tgver","owner":"tgve","description":"TGVE R package","archived":false,"fork":false,"pushed_at":"2023-03-03T16:59:08.000Z","size":74170,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-09T16:31:25.074Z","etag":null,"topics":["geospatial-analysis","geospatial-visualization"],"latest_commit_sha":null,"homepage":"https://tgve.github.io/tgver/","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/tgve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-05T11:17:57.000Z","updated_at":"2022-04-02T09:22:42.000Z","dependencies_parsed_at":"2024-01-16T00:22:46.636Z","dependency_job_id":"a8918d4b-cbe0-490e-a714-da2caadb454a","html_url":"https://github.com/tgve/tgver","commit_stats":{"total_commits":250,"total_committers":6,"mean_commits":"41.666666666666664","dds":"0.17200000000000004","last_synced_commit":"0cb17aba83e7d3d9960f19c0253da6ce1a12edc3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"itsleeds/RpackageTemplate","purl":"pkg:github/tgve/tgver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgve%2Ftgver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgve%2Ftgver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgve%2Ftgver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgve%2Ftgver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tgve","download_url":"https://codeload.github.com/tgve/tgver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgve%2Ftgver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["geospatial-analysis","geospatial-visualization"],"created_at":"2025-10-22T04:06:03.849Z","updated_at":"2026-03-01T04:34:08.498Z","avatar_url":"https://github.com/tgve.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![tic](https://github.com/tgve/tgver/actions/workflows/tic.yml/badge.svg)](https://github.com/tgve/tgver/actions/workflows/tic.yml)\n[![codecov](https://codecov.io/gh/tgve/tgver/branch/master/graph/badge.svg?token=WAR82Q7597)](https://app.codecov.io/gh/tgve/tgver)\n[![CRAN status](https://www.r-pkg.org/badges/version/tgver)](https://CRAN.R-project.org/package=tgver)\n [![](https://cranlogs.r-pkg.org/badges/tgver)](https://cran.r-project.org/package=tgver)\n\nThis is the R package for the TGVE front end `npm` package\n[`tgve`](https://www.npmjs.com/package/@tgve/tgvejs). The R package is\ndeveloped to facilitate interactive geospatial analysis and\nvisualization in R, use R’s echo-system to drive advanced data\nprocessing, and facilitate deployment of geospatial web applications in\nproduction.\n\n## Install\n\nInstall `tgver` from CRAN\n\n```r\ninstall.packages(\"tgver\")\n```\n\nYou can use the latest from GitHub using `devtools::install_github(\"tgve/tgver\")`\n\n## Use\n\nOverall, the package takes advantage of how\nTGVE can be used (see\n[npm package](https://github.com/tgve/tgvejs) for documentation) and\nprovides options to R users.\n\nFor instance, this document is a Markdown (GitHub) document generated\nusing an Rmarkdown (Rmd) document, if the Rmd is rendered to a HTML\noutput, then using `knitr::include_url` we should see an instance of the\nTGVE embedded in the document. Please see the live examples in the\n[vignette](https://tgve.github.io/tgver/articles/tgver.html) which is\nrendered to HTML.\n\nTo do this we can go:\n\n``` r\n# this is the most basic use\n# tgver::tgve()\n# to embed in a html rendered Rmd\nhtml.file = tgver::tgve(browse = FALSE)\nknitr::include_url(html.file)\n```\n\nThe first function `tgver::tgve(browse=FALSE)` prepares an instance of\nthe TGVE but does not run/open it, it returns its path (a `tempdir()`\npath). The second line is `knitr` function to embed the first line’s\noutput.\n\nThat was the simplest way of running an instance of TGVE on the local\nmachine. The more advanced but similar function of this package, with\nthe back-end as a `plumber` API and serving the same instance, would be\nlike:\n\n``` r\n# start a tgve instance before embedding it\nps = tgver::tgve_server(background = TRUE)\n#\u003e Attempting to serve TGVE instance from: /tmp/Rtmpevq9TT/tgve\n#\u003e Running plumber at: http://127.0.0.1/8000\nknitr::include_url(\"http://127.0.0.1:8000\")\n# kill the process returned from underlying `callr`\nps$kill()\n# or use the public one\n# knitr::include_url(\"https://tgve.github.io/app/\")\n```\n\n## Explore `sf` objects\n\nFor these purposes, the package relies on the `plumber` API to serve\ndata. So, again within HTML outputs we can explore `sf` objects like so:\n\n``` r\n# using sf\nnc = sf::st_read(system.file(\"shape/nc.shp\", package=\"sf\"))\ntgver::explore_sf(nc)\n```\n\nFor more see the\n[vignette](https://tgve.github.io/tgver/articles/tgver.html).\n\n## Preview\n\n![tgve-vignette](https://user-images.githubusercontent.com/408568/141796882-2cf68f6b-a6e4-4836-9efa-bf1973f5cab9.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgve%2Ftgver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftgve%2Ftgver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgve%2Ftgver/lists"}