Skip to content

Commit 81707a7

Browse files
committed
Roll a readme
1 parent b99738e commit 81707a7

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

README.md

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
1-
# 2d-random-walk
2-
Demonstrate random walk
1+
# 2D Random Walk
2+
3+
The 2D Random Walk is a web-based application that allows for the exploration of
4+
random walks. The application is built with
5+
R Shiny and deployed using shinylive. Check out the live application at
6+
<https://shiny.thecoatlessprofessor.com/2d-random-walk/>
7+
8+
With the shiny app, you can:
9+
10+
- Specify the type of walk: Cardinal, Diagonal, or Normal;
11+
- Adjust the step size;
12+
- Manually take one step;
13+
- Automatically take steps;
14+
- Visualize the trajectory of the walk; and
15+
- See statistics about the walk.
16+
17+
## Deployment
18+
19+
This application is deployed using shinylive, allowing it to run directly in
20+
the browser without requiring an R server. Shinylive converts the R code to
21+
WebAssembly, making it possible to run R applications entirely client-side.
22+
23+
## Local Development Environment
24+
25+
1. Clone the repository:
26+
27+
```bash
28+
git clone https://github.com/coatless-shiny/2d-random-walk.git
29+
```
30+
31+
2. Open the `central-limit-theorem.Rproj`
32+
33+
3. Install required R packages:
34+
35+
```r
36+
install.packages(c("shiny", "ggplot2", "bslib", "bsicons", "shinylive"))
37+
```
38+
39+
4. Run the application:
40+
41+
```r
42+
shiny::runApp()
43+
```
44+
45+
5. Check if the application can be converted to `{shinylive}`:
46+
47+
```r
48+
shinylive::export(".", "_site")
49+
```
50+
51+
## Acknowledgments
52+
53+
- Built using the R Shiny framework
54+
- Uses the bslib package for Bootstrap 5 theming
55+
- Deployed using shinylive for browser-based execution

0 commit comments

Comments
 (0)