https://github.com/thoughtscript/statistics_fun_2025
Statistics
https://github.com/thoughtscript/statistics_fun_2025
docker r rstudio statistics
Last synced: 4 months ago
JSON representation
Statistics
- Host: GitHub
- URL: https://github.com/thoughtscript/statistics_fun_2025
- Owner: Thoughtscript
- Created: 2025-03-18T01:37:46.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T16:46:01.000Z (10 months ago)
- Last Synced: 2025-08-20T10:36:56.660Z (5 months ago)
- Topics: docker, r, rstudio, statistics
- Language: R
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statistics_fun_2025
[](https://intro2r.com/)
[](https://rocker-project.org/images/versioned/rstudio.html)
[](https://www.docker.com/)
[](https://math.asu.edu/mat142)
*Fun with Statistics* - Docker Container for running *R* scripts.
> Taking [ASU's MAT 142](https://math.asu.edu/mat142) as a prereq (since I tested out of all Math requirements last time around).
## Set Up and Installation
1. First launch the **Container**:
```bash
docker-compose up
# If using Docker Compose Engine V2:
docker compose up
```
1. Then open: http://localhost:8787/ with **Username**: `rstudio` and **Password**: `password`.
1. Run the `init.r` script first (to download all needed dependencies).
1. The code samples will appear within the `home/rstudio` default workspace (under `examples`). (Highlight the entire file to run an example. Will work with **R Visualizations**.)
* `R` apparently uses different relative file paths depending on which tool you run `.r` scripts with.
* As such, you may need to prepend `examples/` when [importing](./r/examples/example_imports.r) data files, modules, or scripts.
2. The samples can also be run using `run.sh` from `home/rstudio` within the **Container** (**Exec**, although this method will not render **R Visualization** in **Terminal**).
> Uses `Rscript` to print to Docker System Out and [Rocker](https://github.com/rocker-org/rocker) for Dockerization.
## Resources and Links
1. https://intro2r.com/data-types.html
2. https://www.w3schools.com/r
3. https://stackoverflow.com/questions/18306362/run-r-script-from-command-line
4. https://cran.r-project.org/doc/contrib/Short-refcard.pdf
5. https://stackoverflow.com/questions/6558921/difference-between-boolean-operators-and-and-between-and-in-r
6. https://www.geeksforgeeks.org/how-to-import-data-from-a-file-in-r-programming/
7. https://cran.r-project.org/web/packages/modules/vignettes/modulesInR.html