mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-21 05:19:07 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
43
reference/import-file.md
Normal file
43
reference/import-file.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Import data from a file
|
||||
|
||||
Let user upload a file and import data
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
import_file_ui(
|
||||
id,
|
||||
title = "",
|
||||
preview_data = TRUE,
|
||||
file_extensions = c(".csv", ".txt", ".xls", ".xlsx", ".rds", ".fst", ".sas7bdat",
|
||||
".sav"),
|
||||
layout_params = c("dropdown", "inline")
|
||||
)
|
||||
|
||||
import_file_server(
|
||||
id,
|
||||
btn_show_data = TRUE,
|
||||
show_data_in = c("popup", "modal"),
|
||||
trigger_return = c("button", "change"),
|
||||
return_class = c("data.frame", "data.table", "tbl_df", "raw"),
|
||||
reset = reactive(NULL),
|
||||
limit = 1e+05
|
||||
)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- preview_data:
|
||||
|
||||
Show or not a preview of the data under the file input.
|
||||
|
||||
- file_extensions:
|
||||
|
||||
File extensions accepted by
|
||||
[`shiny::fileInput()`](https://rdrr.io/pkg/shiny/man/fileInput.html),
|
||||
can also be MIME type.
|
||||
|
||||
- layout_params:
|
||||
|
||||
How to display import parameters : in a dropdown button or inline
|
||||
below file input.
|
||||
Loading…
Add table
Add a link
Reference in a new issue