{"id":21298664,"url":"https://github.com/ryapric/install_r","last_synced_at":"2026-04-18T09:34:20.004Z","repository":{"id":92834877,"uuid":"126659394","full_name":"ryapric/install_R","owner":"ryapric","description":"Bash script for installing tiers of the R ecosystem on various GNU/Linux OSes","archived":false,"fork":false,"pushed_at":"2018-07-18T14:41:05.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T07:37:01.792Z","etag":null,"topics":["bash","gnu","gnu-linux","linux","r"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryapric.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-25T02:57:50.000Z","updated_at":"2019-01-07T22:03:43.000Z","dependencies_parsed_at":"2023-03-03T05:00:22.014Z","dependency_job_id":null,"html_url":"https://github.com/ryapric/install_R","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryapric%2Finstall_R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryapric%2Finstall_R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryapric%2Finstall_R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryapric%2Finstall_R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryapric","download_url":"https://codeload.github.com/ryapric/install_R/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243769947,"owners_count":20345215,"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":["bash","gnu","gnu-linux","linux","r"],"created_at":"2024-11-21T14:56:32.588Z","updated_at":"2026-04-18T09:34:14.961Z","avatar_url":"https://github.com/ryapric.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Install R via Interactive Bash Script\n=====================================\nRyan Price\n\nThis repository provides a bash script, `install_R.bash`, that installs the R\nsoftware on various popular GNU/Linux distributions:\n\n- Debian\n- Ubuntu\n- Fedora\n- RHEL\n- CentOS\n- Amazon Linux\n- Arch Linux (once you're up \u0026 running)\n- Manjaro\n- Raspbian.\n\nOnce run, the script becomes interactive, prompting the user for input on how\nthey would like their installation configured. This program is designed to make\nthe fresh R configuration of a new system or virtual machine as painless as\npossible. To that end, simply following the prompts should be all a user has to\ndo to get up and running with R with a few keystrokes.\n\nCurrently, the script leads the user through the following main prompts:\n\n1. Installation of the base R software (which will also install development\ntools for R)\n\n1. Installation of the [tidyverse](tidyverse.org) of R packages. The tidyverse\nis a collection of R packages designed for consistency in data analysis code.\nApproving this install will also install the `data.table` package, a lightweight\npackage for very fast data analysis \u0026 transformation that has zero non-core-R\ndependencies.\n\n1. Installation of the [RStudio desktop IDE](rstudio.com). Even if you don't\ncare for the tidyverse, which is developed by the people at RStudio, this IDE is\nvery high-quality, and supports syntax highlighting and shell execution of other\nsoftware, as well. Highly recommended.\n\n\u003cbr\u003e\n\nInstallation Instructions\n-------------------------\n\nThe easiest way to get the installation running is to run the following in your\nterminal:\n\n```\n# Requires root privileges, obviously\ncurl -sSL \"https://raw.githubusercontent.com/ryapric/install_R/master/install_R.bash\" | bash\n```\n\nPlease note that piping to bash _**can be very dangerous**_, and you should only do so\nif you have full inspected the source code that you will be running. If you are\nuncomfortable piping directly to bash, then you can `curl` the script (or clone\nthe whole repository) locally, inspect the `install_R.bash` script, then run the\nscript manually. Either approach will have the same results.\n\n\u003cbr\u003e\n\nThings to Note\n--------------\n\n- You can give approval to all prompts (except the swap file confirmation) by\nrunning the script and passing a single option: `--no-confirm`. This is useful\nfor when you want a full ecosystem installation without having to wait through\nthe install steps.\n\n- There are various GNU/Linux utilities that R, the tidyverse, and RStudio\ndepend on to function properly (`libxml`, `libssl`, PostgreSQL backend, etc.).\nThose utilities will only be installed if the relevant selection is approved\nwhen running this script.\n\n- As this is a *bash* script, you will need the bash shell to execute it. I have\ntried to keep as many \"bashisms\" out of it as possible, but some were\nunavoidable for more concise code.\n\n- Some machines, like `micro`-size Amazon AWS EC2 and Google Cloud instances\n(and Raspberry Pis) do not have enough RAM to compile the `tidyverse` source\ncode successfully. Therefore, if you try and install the package suite, and your\nsystem memory is determined to be too low, you will be prompted to allocate\nspace for a temporary swapfile so that compilation can succeed. The swapfile is\n\"swapped off\" after a successful install, but please note that whatever swap\nsettings you may have had before *will not be restored*.\n    - If installation fails or is interrupted, the swapfile may not be removed.\n    You can check and remove it yourself by inspecting the `/mnt` folder for a\n    `*.swap` file (where `*` is the size you gave the swapfile, in GB). Then you\n    can turn off \u0026 remove it by running the following:\n    ```\n    swapoff /mnt/*.swap\n    rm /mnt/*.swap\n    ```\n\n- If you chose to make a swapfile, please note that for systems like the\nRaspberry Pi, which use SD cards as storage, this is not a great idea. SD cards\nhave shorter life spans than magnetic persistent storage, and I do not know how\nthrashed they may be by so much C++ compilation at once. Proceed with caution\nwhen agreeing to that prompt on such a system.\n\nPlease feel free to file bug reports, or reach out with any questions or\nsuggestions.\n\n\u003cbr\u003e\n\n#### License\nGPL-3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryapric%2Finstall_r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryapric%2Finstall_r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryapric%2Finstall_r/lists"}