{"id":19253595,"url":"https://github.com/tidymodels/orbital","last_synced_at":"2025-06-18T18:05:59.633Z","repository":{"id":245031611,"uuid":"814815103","full_name":"tidymodels/orbital","owner":"tidymodels","description":"Turn Tidymodels Workflows Into Series of Equations","archived":false,"fork":false,"pushed_at":"2025-06-05T18:37:49.000Z","size":2516,"stargazers_count":31,"open_issues_count":15,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T23:36:02.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://orbital.tidymodels.org","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/tidymodels.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2024-06-13T19:03:09.000Z","updated_at":"2025-06-05T17:43:40.000Z","dependencies_parsed_at":"2024-06-27T18:42:45.852Z","dependency_job_id":"3a87c054-bd5f-483d-8ba7-43cf93683cda","html_url":"https://github.com/tidymodels/orbital","commit_stats":null,"previous_names":["tidymodels/weasel"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tidymodels/orbital","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Forbital","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Forbital/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Forbital/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Forbital/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidymodels","download_url":"https://codeload.github.com/tidymodels/orbital/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Forbital/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260606471,"owners_count":23035350,"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-11-09T18:31:55.372Z","updated_at":"2025-06-18T18:05:54.605Z","avatar_url":"https://github.com/tidymodels.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# orbital \u003ca href=\"https://orbital.tidymodels.org\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\" alt=\"orbital website\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tidymodels/orbital/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/orbital/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/orbital)](https://CRAN.R-project.org/package=orbital)\n[![Codecov test coverage](https://codecov.io/gh/tidymodels/orbital/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/orbital?branch=main)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n\u003c!-- badges: end --\u003e\n\nThe goal of orbital is to enable running predictions of tidymodels [workflows](https://workflows.tidymodels.org/) inside databases.\n\n## Installation\n\nTo install it, use:\n\n``` r\ninstall.packages(\"orbital\")\n```\n\nYou can install the development version of orbital from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"tidymodels/orbital\")\n```\n\n## Example\n\nGiven a fitted workflow\n\n```{r}\n#| message: false\nlibrary(tidymodels)\n\nrec_spec \u003c- recipe(mpg ~ ., data = mtcars) |\u003e\n  step_normalize(all_numeric_predictors())\n\nlm_spec \u003c- linear_reg()\n\nwf_spec \u003c- workflow(rec_spec, lm_spec)\n\nwf_fit \u003c- fit(wf_spec, mtcars)\n```\n\nYou can predict with it like normal.\n\n```{r}\npredict(wf_fit, mtcars)\n```\n\nWe can get the same results by first creating an orbital object\n\n```{r}\nlibrary(orbital)\norbital_obj \u003c- orbital(wf_fit)\norbital_obj\n```\n\nand then \"predicting\" with it using `predict()` to get the same results\n\n```{r}\npredict(orbital_obj, as_tibble(mtcars))\n```\n\nyou can also predict in most SQL databases\n\n```{r}\nlibrary(DBI)\nlibrary(RSQLite)\n\ncon \u003c- dbConnect(SQLite(), path = \":memory:\")\ndb_mtcars \u003c- copy_to(con, mtcars)\n\npredict(orbital_obj, db_mtcars)\n```\n\nand spark databases\n\n```{r}\nlibrary(sparklyr)\nsc \u003c- spark_connect(master = \"local\")\n\nsc_mtcars \u003c- copy_to(sc, mtcars, overwrite = TRUE)\n\npredict(orbital_obj, sc_mtcars)\n```\n\n# Supported models and recipes steps\n\nFull list of supported models and recipes steps can be found here: `vignette(\"supported-models\")`.\n\n## contributing\n\nThis project is released with a [Contributor Code of Conduct](https://github.com/tidymodels/orbital/blob/main/.github/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n\n- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on Posit Community](https://forum.posit.co/new-topic?category_id=15\u0026tags=tidymodels,question).\n\n- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/orbital/issues).\n\n- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code.\n\n- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Forbital","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidymodels%2Forbital","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Forbital/lists"}