Skip to content

Commit 527b5af

Browse files
committed
Clarify
1 parent 22fd3b8 commit 527b5af

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ library(shinyelectron)
6767

6868
# Export a Shiny application to an Electron application
6969
shinyelectron::export(
70-
appdir = "path/to/your/shinyapp",
70+
appdir = "path/to/your/shiny/app",
7171
destdir = "path/to/export/destination"
7272
)
7373
```
@@ -78,9 +78,9 @@ package into a standalone Electron app:
7878
``` r
7979
# Copy "Hello World" from `{shiny}`
8080
system.file("examples", "01_hello", package="shiny") |>
81-
fs::dir_copy("myapp", overwrite = TRUE)
81+
fs::dir_copy("hello-shiny-app", overwrite = TRUE)
8282

83-
shinyelectron::export("myapp", "hello-world-app")
83+
shinyelectron::export("hello-shiny-app", "shinyelectron-converted-app")
8484
```
8585

8686
### Advanced Options
@@ -89,15 +89,16 @@ You can customize the export process using the following options:
8989

9090
``` r
9191
shinyelectron::export(
92-
appdir = "path/to/your/shinyapp",
93-
destdir = "path/to/export/destination",
94-
app_name = "My Amazing App",
95-
platform = c("win", "mac"), # Build for Windows and Mac only
96-
include_r = TRUE, # Bundle minimal R environment
97-
r_version = "4.4.3", # Bundle R 4.4.3
98-
overwrite = TRUE, # Overwrite existing files in destdir
99-
verbose = TRUE, # Display detailed progress information
100-
open_after = TRUE # Open the generated project after export
92+
appdir = "path/to/your/shiny/app",
93+
destdir = ""path/to/export/destination",
94+
app_name = "My-App-Title", # Defaults to the name of the appdir
95+
app_type = "r-shinylive", # We only support "r-shinylive" currently
96+
platform = c("mac"), # c("win", "mac", "linux")
97+
arch = c("arm64"), # c("x64", "arm64")
98+
overwrite = TRUE, # Overwrite existing files in destdir
99+
run_after = TRUE, # Launch the app after building for testing
100+
open_after = TRUE, # Open the generated project after export
101+
verbose = TRUE # Display detailed progress information
101102
)
102103
```
103104

README.qmd

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ library(shinyelectron)
7474

7575
# Export a Shiny application to an Electron application
7676
shinyelectron::export(
77-
appdir = "path/to/your/shinyapp",
77+
appdir = "path/to/your/shiny/app",
7878
destdir = "path/to/export/destination"
7979
)
8080
```
@@ -85,9 +85,9 @@ into a standalone Electron app:
8585
```r
8686
# Copy "Hello World" from `{shiny}`
8787
system.file("examples", "01_hello", package="shiny") |>
88-
fs::dir_copy("myapp", overwrite = TRUE)
88+
fs::dir_copy("hello-shiny-app", overwrite = TRUE)
8989

90-
shinyelectron::export("myapp", "hello-world-app")
90+
shinyelectron::export("hello-shiny-app", "shinyelectron-converted-app")
9191
```
9292

9393
### Advanced Options
@@ -96,15 +96,16 @@ You can customize the export process using the following options:
9696

9797
```r
9898
shinyelectron::export(
99-
appdir = "path/to/your/shinyapp",
100-
destdir = "path/to/export/destination",
101-
app_name = "My Amazing App",
102-
platform = c("win", "mac"), # Build for Windows and Mac only
103-
include_r = TRUE, # Bundle minimal R environment
104-
r_version = "4.4.3", # Bundle R 4.4.3
105-
overwrite = TRUE, # Overwrite existing files in destdir
106-
verbose = TRUE, # Display detailed progress information
107-
open_after = TRUE # Open the generated project after export
99+
appdir = "path/to/your/shiny/app",
100+
destdir = ""path/to/export/destination",
101+
app_name = "My-App-Title", # Defaults to the name of the appdir
102+
app_type = "r-shinylive", # We only support "r-shinylive" currently
103+
platform = c("mac"), # c("win", "mac", "linux")
104+
arch = c("arm64"), # c("x64", "arm64")
105+
overwrite = TRUE, # Overwrite existing files in destdir
106+
run_after = TRUE, # Launch the app after building for testing
107+
open_after = TRUE, # Open the generated project after export
108+
verbose = TRUE # Display detailed progress information
108109
)
109110
```
110111

0 commit comments

Comments
 (0)