mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
improved code output
This commit is contained in:
parent
268038e49e
commit
9e8ff6b4a9
20 changed files with 752 additions and 808 deletions
16
man/data-import.Rd
Normal file
16
man/data-import.Rd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/data-import.R
|
||||
\name{data_import_demo_app}
|
||||
\alias{data_import_demo_app}
|
||||
\title{Test app for the data-import module}
|
||||
\usage{
|
||||
data_import_demo_app()
|
||||
}
|
||||
\description{
|
||||
Test app for the data-import module
|
||||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
data_import_demo_app()
|
||||
}
|
||||
}
|
||||
46
man/import-file-type.Rd
Normal file
46
man/import-file-type.Rd
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/import-file-ext.R
|
||||
\name{import-file-type}
|
||||
\alias{import-file-type}
|
||||
\alias{import_delim}
|
||||
\alias{import_xls}
|
||||
\alias{import_ods}
|
||||
\alias{import_dta}
|
||||
\alias{import_rds}
|
||||
\title{Wrapper to ease data file import}
|
||||
\usage{
|
||||
import_delim(file, skip, encoding, na.strings)
|
||||
|
||||
import_xls(file, sheet, skip, na.strings)
|
||||
|
||||
import_ods(file, sheet, skip, na.strings)
|
||||
|
||||
import_dta(file)
|
||||
|
||||
import_rds(file)
|
||||
}
|
||||
\arguments{
|
||||
\item{file}{path to the file}
|
||||
|
||||
\item{skip}{number of row to skip}
|
||||
|
||||
\item{encoding}{file encoding}
|
||||
|
||||
\item{na.strings}{character(s) to interpret as missing values.}
|
||||
|
||||
\item{sheet}{for Excel files, sheet to read}
|
||||
}
|
||||
\value{
|
||||
data.frame
|
||||
|
||||
data.frame
|
||||
|
||||
data.frame
|
||||
|
||||
data.frame
|
||||
|
||||
data.frame
|
||||
}
|
||||
\description{
|
||||
Wrapper to ease data file import
|
||||
}
|
||||
|
|
@ -21,8 +21,7 @@ import_file_server(
|
|||
show_data_in = c("popup", "modal"),
|
||||
trigger_return = c("button", "change"),
|
||||
return_class = c("data.frame", "data.table", "tbl_df", "raw"),
|
||||
reset = reactive(NULL),
|
||||
read_fns = list()
|
||||
reset = reactive(NULL)
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
|
|
@ -31,21 +30,6 @@ import_file_server(
|
|||
\item{file_extensions}{File extensions accepted by \code{\link[shiny:fileInput]{shiny::fileInput()}}, can also be MIME type.}
|
||||
|
||||
\item{layout_params}{How to display import parameters : in a dropdown button or inline below file input.}
|
||||
|
||||
\item{read_fns}{Named list with custom function(s) to read data:
|
||||
\itemize{
|
||||
\item the name must be the extension of the files to which the function will be applied
|
||||
\item the value must be a function that can have 5 arguments (you can ignore some of them, but you have to use the same names),
|
||||
passed by user through the interface:
|
||||
\itemize{
|
||||
\item \code{file}: path to the file
|
||||
\item \code{sheet}: for Excel files, sheet to read
|
||||
\item \code{skip}: number of row to skip
|
||||
\item \code{dec}: decimal separator
|
||||
\item \code{encoding}: file encoding
|
||||
\item \code{na.strings}: character(s) to interpret as missing values.
|
||||
}
|
||||
}}
|
||||
}
|
||||
\description{
|
||||
Let user upload a file and import data
|
||||
|
|
|
|||
16
man/import-file_module.Rd
Normal file
16
man/import-file_module.Rd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/import-file-ext.R
|
||||
\name{import_file_demo_app}
|
||||
\alias{import_file_demo_app}
|
||||
\title{Test app for the import_file module}
|
||||
\usage{
|
||||
import_file_demo_app()
|
||||
}
|
||||
\description{
|
||||
Test app for the import_file module
|
||||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
import_file_demo_app()
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/import-file-ext.R
|
||||
\name{import_delim}
|
||||
\alias{import_delim}
|
||||
\title{Wrapper of data.table::fread to import delim files with few presets}
|
||||
\usage{
|
||||
import_delim(file, skip, encoding, na.strings)
|
||||
}
|
||||
\arguments{
|
||||
\item{file}{file}
|
||||
|
||||
\item{encoding}{encoding}
|
||||
|
||||
\item{na.strings}{na.strings}
|
||||
}
|
||||
\value{
|
||||
data.frame
|
||||
}
|
||||
\description{
|
||||
Wrapper of data.table::fread to import delim files with few presets
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
\alias{update_variables_server}
|
||||
\title{Select, rename and convert variables}
|
||||
\usage{
|
||||
update_variables_ui(id, title = TRUE)
|
||||
update_variables_ui(id, title = "")
|
||||
|
||||
update_variables_server(
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue