@@ -67,7 +67,7 @@ library(shinyelectron)
6767
6868# Export a Shiny application to an Electron application
6969shinyelectron :: 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}`
8080system.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
9191shinyelectron :: 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
0 commit comments