{"id":22413723,"url":"https://github.com/jsta/rinvest","last_synced_at":"2025-04-13T12:28:04.150Z","repository":{"id":88675685,"uuid":"319331664","full_name":"jsta/rinvest","owner":"jsta","description":"R wrapper for Python invest","archived":false,"fork":false,"pushed_at":"2023-03-14T19:52:13.000Z","size":1144,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T12:28:00.052Z","etag":null,"topics":["python","rstats"],"latest_commit_sha":null,"homepage":"https://jsta.github.io/rinvest","language":"R","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/jsta.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"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":"2020-12-07T13:40:23.000Z","updated_at":"2023-06-21T22:52:46.000Z","dependencies_parsed_at":"2025-03-27T03:39:14.648Z","dependency_job_id":null,"html_url":"https://github.com/jsta/rinvest","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/jsta%2Frinvest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Frinvest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Frinvest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Frinvest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/rinvest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248713639,"owners_count":21149734,"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":["python","rstats"],"created_at":"2024-12-05T14:14:25.280Z","updated_at":"2025-04-13T12:28:04.145Z","avatar_url":"https://github.com/jsta.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"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# rinvest\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/jsta/rinvest/workflows/R-CMD-check/badge.svg)](https://github.com/jsta/rinvest/actions) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\u003c!-- badges: end --\u003e\n\n## Installation\n\nRequires that Anaconda (or Miniconda) be installed and that it can be detected by the `reticulate` package. Check if this is the case with:\n\n```{r }\nnchar(reticulate::conda_binary()) \u003e 0\n```\n\nYou can install `rinvest` with:\n\n```{r, eval=FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"jsta/rinvest\")\nrinvest::install_invest()\n```\n\n## Example\n\n```{r example, eval=TRUE}\nlibrary(rinvest)\n\ndata_dir \u003c- system.file(\"extdata/NDR\", package = \"rinvest\")\nargs \u003c- list(\n  \"workspace_dir\" = \"workspace\",\n  \"dem_path\" = paste0(data_dir, \"/DEM_gura.tif\"),\n  \"lulc_path\" = paste0(data_dir, \"/land_use_gura.tif\"),\n  \"runoff_proxy_path\" = paste0(data_dir, \"/precipitation_gura.tif\"),\n  \"watersheds_path\" = paste0(data_dir,  \"/watershed_gura.shp\"),\n  \"biophysical_table_path\" = paste0(data_dir,  \"/biophysical_table_gura.csv\"),\n  \"calc_p\" = TRUE,\n  \"calc_n\" = FALSE,\n  \"threshold_flow_accumulation\" = 1000,\n  \"k_param\" = 2,\n  \"subsurface_eff_p\" = 0.5,\n  \"subsurface_critical_length_p\" = 25\n)\n\nndr_file_paths \u003c- ndr(args, overwrite = TRUE)\n```\n\n```{r, eval=TRUE}\nndr_file_paths\n```\n\n```{r, eval=FALSE, message=FALSE}\nlibrary(raster)\n\nplot(raster(\"workspace/p_surface_export.tif\"), main = \"P export\")\n```\n\n![](man/figures/README-unnamed-chunk-4-1.png)\n\n## Links\n\nhttp://releases.naturalcapitalproject.org/invest-userguide/latest/\n\nhttps://community.naturalcapitalproject.org/\n\nhttps://github.com/natcap/invest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Frinvest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Frinvest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Frinvest/lists"}