mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: loading of local data was internalised based on the datamods package
This commit is contained in:
parent
2c39313ffb
commit
9c1d6ed630
11 changed files with 467 additions and 69 deletions
50
man/import-globalenv.Rd
Normal file
50
man/import-globalenv.Rd
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/import_globalenv-ext.R
|
||||
\name{import-globalenv}
|
||||
\alias{import-globalenv}
|
||||
\alias{import_globalenv_ui}
|
||||
\alias{import_globalenv_server}
|
||||
\title{Import data from an Environment}
|
||||
\usage{
|
||||
import_globalenv_ui(
|
||||
id,
|
||||
globalenv = TRUE,
|
||||
packages = datamods::get_data_packages(),
|
||||
title = TRUE
|
||||
)
|
||||
|
||||
import_globalenv_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)
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{id}{Module's ID.}
|
||||
|
||||
\item{globalenv}{Search for data in Global environment.}
|
||||
|
||||
\item{packages}{Name of packages in which to search data.}
|
||||
|
||||
\item{title}{Module's title, if \code{TRUE} use the default title,
|
||||
use \code{NULL} for no title or a \code{shiny.tag} for a custom one.}
|
||||
|
||||
\item{btn_show_data}{Display or not a button to display data in a modal window if import is successful.}
|
||||
|
||||
\item{show_data_in}{Where to display data: in a \code{"popup"} or in a \code{"modal"} window.}
|
||||
|
||||
\item{trigger_return}{When to update selected data:
|
||||
\code{"button"} (when user click on button) or
|
||||
\code{"change"} (each time user select a dataset in the list).}
|
||||
|
||||
\item{return_class}{Class of returned data: \code{data.frame}, \code{data.table}, \code{tbl_df} (tibble) or \code{raw}.}
|
||||
|
||||
\item{reset}{A \code{reactive} function that when triggered resets the data.}
|
||||
}
|
||||
\description{
|
||||
Let the user select a dataset from its own environment or from a package's environment.
|
||||
Modified from datamods
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue