{"id":45292362,"url":"https://github.com/reseau-constellation/client-r","last_synced_at":"2026-02-21T03:25:51.059Z","repository":{"id":108713173,"uuid":"437842974","full_name":"reseau-constellation/client-r","owner":"reseau-constellation","description":"Un client R pour le réseau constellation","archived":false,"fork":false,"pushed_at":"2025-12-03T05:59:16.000Z","size":5479,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T07:09:06.035Z","etag":null,"topics":["constellation","donnees-distribuees","donnees-ouvertes"],"latest_commit_sha":null,"homepage":"https://reseau-constellation.github.io/client-r/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reseau-constellation.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-13T11:16:06.000Z","updated_at":"2025-04-14T16:48:43.000Z","dependencies_parsed_at":"2023-03-18T12:37:56.322Z","dependency_job_id":"d00163d7-254b-40be-9dba-e76cb3b4790b","html_url":"https://github.com/reseau-constellation/client-r","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reseau-constellation/client-r","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reseau-constellation%2Fclient-r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reseau-constellation%2Fclient-r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reseau-constellation%2Fclient-r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reseau-constellation%2Fclient-r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reseau-constellation","download_url":"https://codeload.github.com/reseau-constellation/client-r/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reseau-constellation%2Fclient-r/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["constellation","donnees-distribuees","donnees-ouvertes"],"created_at":"2026-02-21T03:25:50.510Z","updated_at":"2026-02-21T03:25:51.048Z","avatar_url":"https://github.com/reseau-constellation.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# constellationR\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![R-CMD-check](https://github.com/reseau-constellation/client-r/workflows/R-CMD-check/badge.svg)](https://github.com/reseau-constellation/client-r/actions)\n[![R-CMD-check](https://github.com/reseau-constellation/client-r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/reseau-constellation/client-r/actions/workflows/R-CMD-check.yaml)\n[![codecov](https://codecov.io/github/reseau-constellation/client-r/graph/badge.svg?token=U2MUE2ZLGO)](https://app.codecov.io/github/reseau-constellation/client-r)\n\u003c!-- badges: end --\u003e\n\n`constellationR` est un paquet R pour interagir avec le logiciel Constellation pour le partage de données scientifiques distribuées.\n\n## Installation\n\nVous pouvez installer `constellationR` de [GitHub](https://github.com/) ainsi :\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"reseau-constellation/client-r\")\n```\n\n## Utilisation\nVous pouvez effectuer des actions ainsi :\n\n``` r\nlibrary(constellationR)\n\nconstellationR::avecClientEtServeur(\n  function (client) {\n    # Accéder l'identifiant du compte\n    idCompte \u003c- client$appeler(\"obtIdCompte\")\n    \n    # Créer une nouvelle base de données\n    idBd \u003c- client$appeler(\n      \"bds.créerBd\", \n      list(licence=\"ODbl-1_0\")\n    )\n  }\n)\n\n```\n\nVous pouvez également suivre des données du réseau Constellation :\n``` r\nlibrary(constellationR)\n\nconstellationR::avecClientEtServeur(\n  function (client) {\n    oublier \u003c- client$appeler(\n      \"bds.suivreNomsBd\",\n      list(\n        idBd = idBd,\n        f = print\n      )\n    )\n    \n    Sys.sleep(2)\n    # Arrêter le suivi après 2 secondes\n    oublier()\n  }\n)\n```\n\nSi vous ne voulez pas suivre les données, mais seulement obtenir leur valeur au moment que la fonction est invoquée, vous n'avez qu'à omettre le paramètre de fonction de suivi :\n\n``` r\nlibrary(constellationR)\n\nconstellationR::avecClientEtServeur(\n  function (client) {\n    nomsBd \u003c- client$appeler(\n      \"bds.suivreNomsBd\",\n      list(\n        idBd = idBd\n      )\n    )\n  }\n)\n```\n\nC'est la même chose pour les fonctions de recherche :\n\n``` r\nlibrary(constellationR)\n\nconstellationR::avecClientEtServeur(\n  function (client) {\n    variablesTrouvées \u003c- NULL\n    f \u003c- function(résultats) {\n      variablesTrouvées \u003c\u003c- sapply(résultats, (\\(x) x$id))\n    }\n    retour \u003c- client$rechercher(\n      \"recherche.rechercherVariablesSelonNom\",\n      list(nomVariable=\"oiseaux\", nRésultatsDésirés = 10, f = f)\n    )\n\n    idVariableAudio \u003c- client$action(\n      \"variables.créerVariable\", list(catégorie=\"audio\")\n    )\n\n    client$action(\n      \"variables.sauvegarderNomVariable\",\n      list(idVariable=idVariableAudio, langue=\"fr\", nom=\"Audio oiseaux\")\n    )\n\n    idVariableNom \u003c- client$action(\n      \"variables.créerVariable\", list(catégorie=\"chaîne\")\n    )\n\n    client$action(\n      \"variables.sauvegarderNomVariable\",\n      list(idVariable=idVariableNom, langue=\"fr\", nom=\"Nom oiseau\")\n    )\n    \n    retour$fChangerN(1)\n    \n    Sys.sleep(2)\n    \n    retour$fChangerN(4)\n    \n    Sys.sleep(2)\n    \n    retour$fOublier()\n  }\n)\n```\n\n### Serveur existant\nSi vous avez déjà lancé un serveur Constellation (p. ex., dans l'interface graphique ou bien à travers un autre processus), vous pouvez vous connecter directement à celui-ci.\n```r\nlibrary(constellationR)\n\n// Le numéro du port sur lequel vous avez lancé Constellation\nport \u003c- 5003\ncodeSecret \u003c- \"le code secret que le serveur vous a donnée afin de vous connecter\"\n\nconstellationR::avecClient(\n  function(client) {\n    // Faire quelque chose avec le client...\n  },\n  port = port,\n  codeSecret = codeSecret\n)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freseau-constellation%2Fclient-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freseau-constellation%2Fclient-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freseau-constellation%2Fclient-r/lists"}