@@ -67,7 +67,7 @@ library(shinyelectron)
67
67
68
68
# Export a Shiny application to an Electron application
69
69
shinyelectron :: export(
70
- appdir = " path/to/your/shinyapp " ,
70
+ appdir = " path/to/your/shiny/app " ,
71
71
destdir = " path/to/export/destination"
72
72
)
73
73
```
@@ -78,9 +78,9 @@ package into a standalone Electron app:
78
78
``` r
79
79
# Copy "Hello World" from `{shiny}`
80
80
system.file(" examples" , " 01_hello" , package = " shiny" ) | >
81
- fs :: dir_copy(" myapp " , overwrite = TRUE )
81
+ fs :: dir_copy(" hello-shiny-app " , overwrite = TRUE )
82
82
83
- shinyelectron :: export(" myapp " , " hello-world -app" )
83
+ shinyelectron :: export(" hello-shiny-app " , " shinyelectron-converted -app" )
84
84
```
85
85
86
86
### Advanced Options
@@ -89,15 +89,16 @@ You can customize the export process using the following options:
89
89
90
90
``` r
91
91
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
101
102
)
102
103
```
103
104
0 commit comments