{"id":19240250,"url":"https://github.com/extendr/helloextendr","last_synced_at":"2025-04-21T08:32:18.381Z","repository":{"id":43873056,"uuid":"316433197","full_name":"extendr/helloextendr","owner":"extendr","description":"Minimal Example of the Rust extendr Crate","archived":false,"fork":false,"pushed_at":"2023-07-07T01:26:02.000Z","size":49,"stargazers_count":20,"open_issues_count":1,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-19T04:29:03.532Z","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/extendr.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-11-27T07:42:47.000Z","updated_at":"2024-10-22T20:04:42.000Z","dependencies_parsed_at":"2023-02-06T04:25:14.424Z","dependency_job_id":null,"html_url":"https://github.com/extendr/helloextendr","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extendr%2Fhelloextendr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extendr%2Fhelloextendr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extendr%2Fhelloextendr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extendr%2Fhelloextendr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extendr","download_url":"https://codeload.github.com/extendr/helloextendr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250023570,"owners_count":21362426,"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-09T17:06:36.688Z","updated_at":"2025-04-21T08:32:18.103Z","avatar_url":"https://github.com/extendr.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal Example of Calling Rust from R\n\n[![R build status](https://github.com/extendr/helloextendr/workflows/R-CMD-check/badge.svg)](https://github.com/extendr/helloextendr/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis is a template package to demonstrate how to call Rust from R using the [extendr-api](https://crates.io/crates/extendr-api) crate.\n\n\n## Installation\n\nBefore you can install this package, you need to install a working Rust toolchain. We recommend using [rustup.](https://rustup.rs/)\n\nOn Windows, you'll also have to add the `x86_64-pc-windows-gnu` target:\n```\nrustup target add x86_64-pc-windows-gnu\n```\n\nOnce Rust is working, you can install this package via:\n```r\nremotes::install_github(\"extendr/helloextendr\")\n```\n\nAfter installation, the following should work:\n```r\nlibrary(helloextendr)\n\nhello_world()\n#\u003e [1] \"Hello world!\"\n```\n\n## Development\n\n### Install rextendr\n\nYou will need [rextendr](https://github.com/extendr/rextendr) package to generate wrappers.\nPlease install it before proceeding to the next step.\n\n``` r\nremotes::install_github(\"extendr/rextendr\")\n```\n\n### Generate wrappers\n\nWhen you make either of the following changes to the Rust source code, you'll need to regenerate the wrappers.\n\n* add a new function\n* modify the signature of an existing function\n* modify the documentation written on Rust code (on the lines starting with `///`)\n\nThis can be done by:\n\n``` r\nrextendr::document()\n```\n\nWhich will compile the Rust code as well as updating documentation.\n\n## Creating your own project\n\nFor a fully worked out demonstration of how to create a Rust + R library see [here](https://extendr.github.io/rextendr/articles/package.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextendr%2Fhelloextendr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextendr%2Fhelloextendr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextendr%2Fhelloextendr/lists"}