Title: | Interfacing 'NaileR' with 'Shiny' |
Version: | 1.1.1 |
Description: | A very small package for more convenient use of 'NaileR'. You provide a data set containing a latent variable you want to understand. It generates a description and an interpretation of this latent variable using a Large Language Model. For perceptual data, it describes the stimuli used in the experiment. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
Encoding: | UTF-8 |
RoxygenNote: | 7.3.2 |
Imports: | dplyr, NaileR, shiny, shinycssloaders, FactoMineR, stringr |
Depends: | R (≥ 4.1.0) |
Suggests: | SensoMineR |
NeedsCompilation: | no |
Packaged: | 2025-07-13 22:12:19 UTC; sebastienle |
Author: | Sébastien Lê |
Maintainer: | Sébastien Lê <sebastien.le@institut-agro.fr> |
Repository: | CRAN |
Date/Publication: | 2025-07-14 12:30:02 UTC |
Shiny app principale
Description
Shiny app principale
Usage
shiny_nail_catdes(dataset)
Arguments
dataset |
A data frame containing at least one categorical variable (factor). |
Value
Launches a Shiny web application.
Launch a Shiny app for interpreting a (latent) continuous variable
Description
This function launches a Shiny app for interpreting a (latent) continuous variable with the 'Nailer' package.
Usage
shiny_nail_condes(dataset)
Arguments
dataset |
A data frame containing the continuous variable to be analyzed. |
Value
This function does not return a value; it launches a Shiny app.
Examples
if(interactive()){
# Processing time is often longer than ten seconds
# because the function uses a large language model.
library(FactoMineR)
library(stringr)
library(NaileR)
data(beard_cont)
res_ca_beard <- FactoMineR::CA(beard_cont, graph = FALSE)
beard_work <- res_ca_beard$row$coord |> as.data.frame()
beard_work <- beard_work[,1] |> cbind(beard_cont)
intro_beard <- "These data refer to 8 types of beards.
Each beard was evaluated by 62 assessors."
intro_beard <- gsub('\n', ' ', intro_beard) |>
stringr::str_squish()
req_beard <- "Please explain what differentiates beards
on both sides of the scale.
Then, give the scale a name."
req_beard <- gsub('\n', ' ', req_beard) |>
stringr::str_squish()
shiny_nail_condes(beard_work)
}
Launch a Shiny app for analyzing Quantitative Descriptive Analysis data (QDA)
Description
This function launches a Shiny app for analyzing QDA data with the 'Nailer' package. The app allows users to explore and analyze their QDA dataset.
Usage
shiny_nail_qda(dataset)
Arguments
dataset |
A data frame containing the data to be analyzed. |
Value
This function does not return a value; it launches a Shiny app.
Examples
if(interactive()){
# Processing time is often longer than ten seconds
# because the function uses a large language model.
library(SensoMineR)
data(chocolates)
shiny_nail_qda(sensochoc)
}