{"id":18733525,"url":"https://github.com/insightsengineering/sasr","last_synced_at":"2025-04-12T18:31:48.774Z","repository":{"id":64649474,"uuid":"550815550","full_name":"insightsengineering/sasr","owner":"insightsengineering","description":"sasr","archived":false,"fork":false,"pushed_at":"2024-09-16T14:41:23.000Z","size":3333,"stargazers_count":14,"open_issues_count":7,"forks_count":2,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-09-16T17:24:35.898Z","etag":null,"topics":["r","r-package","rstats","statistical-engineering"],"latest_commit_sha":null,"homepage":"https://insightsengineering.github.io/sasr/","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/insightsengineering.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","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},"funding":{"custom":["https://pharmaverse.org"]}},"created_at":"2022-10-13T11:24:48.000Z","updated_at":"2024-09-16T14:37:43.000Z","dependencies_parsed_at":"2023-02-18T02:15:34.519Z","dependency_job_id":"1dab6edf-5d86-4a20-bf1d-38240fc4c810","html_url":"https://github.com/insightsengineering/sasr","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsasr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsasr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsasr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsasr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insightsengineering","download_url":"https://codeload.github.com/insightsengineering/sasr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248613539,"owners_count":21133530,"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":["r","r-package","rstats","statistical-engineering"],"created_at":"2024-11-07T15:10:07.470Z","updated_at":"2025-04-12T18:31:48.380Z","avatar_url":"https://github.com/insightsengineering.png","language":"R","funding_links":["https://pharmaverse.org"],"categories":[],"sub_categories":[],"readme":"# sasr\n\n\u003cimg src=\"man/figures/sasr-logo.svg\" align=\"right\" alt=\"\" width=\"180\"\u003e\n\n\u003c!-- start badges --\u003e\n[![Code Coverage](https://raw.githubusercontent.com/insightsengineering/sasr/_xml_coverage_reports/data/main/badge.svg)](https://raw.githubusercontent.com/insightsengineering/sasr/_xml_coverage_reports/data/main/coverage.xml)\n\u003c!-- end badges --\u003e\n\nThis package provides interface to SAS through `saspy` and `reticulate`.\n\n## Prerequisites\n\nTo use `sasr`, you need to make sure you have the following\n\n1. An SAS server that is accessible from the machine that you want to run `sasr` on\n1. The machine that you want to run `sasr` has Python and Java\n\n## Installation\n\nTo install `sasr`, please use the following command\n\n```{r}\nremotes::install_github(repo = 'insightsengineering/sasr')\n```\n\nReticulate will be installed automatically, but Python package `saspy` will not.\n\nIf you do not have Python, you can use the following code to install Python, or it can be installed automatically after you call some python related stuffs.\n\n```{r}\nlibrary(reticulate)\ninstall_python()\n```\n\nTo install `saspy`, use the following code\n\n```{r}\nlibrary(sasr)\ninstall_saspy()\n```\n\nAfter the installation completes, you are ready to use `sasr` package.\n\n### Short Example\n\n```{r}\nlibrary(sasr)\ndf2sd(mtcars, \"mt\")\nresult \u003c- run_sas(\"\n  proc freq data = mt;\n  run;\n\")\n\ncat(result$LOG)\n\ncat(result$LST)\n```\n\n## FAQ\n\nQ: Why use `saspy` instead of using `ssh` tunnels?\n\nA: Although we can use `ssh` tunnels to transfer data and\nexecute SAS commands, there are many restrictions: it only\nsupports `ssh` connection. Using `saspy`, the official Python\ninterface to SAS, we can enable all connection types, without\nreinventing the wheel, e.g. we can also connect to a local SAS\ninstallation with the same syntax, or connect to a remote SAS\nViya through `http`. In addition, SAS sessions in `saspy` will\nnot end until you terminate it (or encounter net work issues),\nit will be nice to execute multiple SAS code one by one, not\nnecessarily putting them in one script and execute the whole\nscript at once. Also, with the update of `saspy` over time,\n`sasr` will be easily extensible, to include functionalities\nother than transferring data and executing SAS code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fsasr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsightsengineering%2Fsasr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fsasr/lists"}