Learn R Programming

Radiant - Business analytics using R and Shiny

Radiant is an open-source platform-independent browser-based interface for business analytics in R. The application is based on the Shiny package and can be run locally or on a server. Radiant was developed by Vincent Nijs. Please use the issue tracker on GitHub to suggest enhancements or report problems: https://github.com/radiant-rstats/radiant.model/issues. For other questions and comments please use [email protected].

Key features

  • Explore: Quickly and easily summarize, visualize, and analyze your data
  • Cross-platform: It runs in a browser on Windows, Mac, and Linux
  • Reproducible: Recreate results and share work with others as a state file or an Rmarkdown report
  • Programming: Integrate Radiant's analysis functions with your own R-code
  • Context: Data and examples focus on business applications

Playlists

There are two youtube playlists with video tutorials. The first provides a general introduction to key features in Radiant. The second covers topics relevant in a course on business analytics (i.e., Probability, Decision Analysis, Hypothesis Testing, Linear Regression, and Simulation).

  • Introduction to Radiant
  • Radiant Tutorial Series

Explore

Radiant is interactive. Results update immediately when inputs are changed (i.e., no separate dialog boxes) and/or when a button is pressed (e.g., Estimate in Model > Estimate > Logistic regression (GLM)). This facilitates rapid exploration and understanding of the data.

Cross-platform

Radiant works on Windows, Mac, or Linux. It can run without an Internet connection and no data will leave your computer. You can also run the app as a web application on a server.

Reproducible

To conduct high-quality analysis, simply saving output is not enough. You need the ability to reproduce results for the same data and/or when new data become available. Moreover, others may want to review your analysis and results. Save and load the state of the application to continue your work at a later time or on another computer. Share state files with others and create reproducible reports using Rmarkdown. See also the section on Saving and loading state below

If you are using Radiant on a server you can even share the URL (include the SSUID) with others so they can see what you are working on. Thanks for this feature go to Joe Cheng.

Programming

Although Radiant's web-interface can handle quite a few data and analysis tasks, you may prefer to write your own R-code. Radiant provides a bridge to programming in R(studio) by exporting the functions used for analysis (i.e., you can conduct your analysis using the Radiant web-interface or by calling Radiant's functions directly from R-code). For more information about programming with Radiant see the programming page on the documentation site.

Context

Radiant focuses on business data and decisions. It offers tools, examples, and documentation relevant for that context, effectively reducing the business analytics learning curve.

How to install Radiant

See the installing radiant page for all-in-one scripts to install R, Rstudio, and Radiant on Windows and macOS. Once all R-packages are installed, select Start radiant (browser) from the Addins menu in Rstudio or use the command below from the console in Rstudio to launch the app:

radiant::radiant()

When Radiant starts you will see data on diamond prices. To close the application click the icon in the navigation bar and then click Stop. The Radiant process will stop and the browser window will close (Chrome) or gray-out.

Documentation

Documentation and tutorials are available at https://radiant-rstats.github.io/docs/ and in the Radiant web interface (the icons on each page and the icon in the navigation bar).

Individual Radiant packages also each have their own pkgdown sites:

Want some help getting started? Watch the tutorials on the documentation site.

Reporting issues

Please use the GitHub issue tracker at github.com/radiant-rstats/radiant/issues if you have any problems using Radiant.

Saving and loading state

To save your analyses save the state of the app to a file by clicking on the icon in the navbar and then on Save radiant state file (see also the Data > Manage tab). You can open this state file at a later time or on another computer to continue where you left off. You can also share the file with others that may want to replicate your analyses. As an example, load the state file radiant-example.state.rda by clicking on the icon in the navbar and then on Load radiant state file. Go to Data > View and Data > Visualize to see some of the settings from the previous "state" of the app. There is also a report in Report > Rmd that was created using the Radiant interface. The html file radiant-example.nb.html contains the output.

A related feature in Radiant is that state is maintained if you accidentally navigate to another web page, close (and reopen) the browser, and/or hit refresh. Use Refresh in the menu in the navigation bar to return to a clean/new state.

Loading and saving state also works with Rstudio. If you start Radiant from Rstudio and use > Stop to stop the app, lists called r_data, r_info, and r_state will be put into Rstudio's global workspace. If you start radiant again using radiant::radiant() it will use these lists to restore state. Also, if you load a state file directly into Rstudio it will be used when you start Radiant to recreate a previous state.

Technical note: Loading state works as follows in Radiant: When an input is initialized in a Shiny app you set a default value in the call to, for example, numericInput. In Radiant, when a state file has been loaded and an input is initialized it looks to see if there is a value for an input of that name in a list called r_state. If there is, this value is used. The r_state list is created when saving state using reactiveValuesToList(input). An example of a call to numericInput is given below where the state_init function from radiant.R is used to check if a value from r_state can be used.

numericInput("sm_comp_value", "Comparison value:", state_init("sm_comp_value", 0))

Source code

The source code for the radiant application is available on GitHub at https://github.com/radiant-rstats. radiant.data, offers tools to load, save, view, visualize, summarize, combine, and transform data. radiant.design builds on radiant.data and adds tools for experimental design, sampling, and sample size calculation. radiant.basics covers the basics of statistical analysis (e.g., comparing means and proportions, cross-tabs, correlation, etc.) and includes a probability calculator. radiant.model covers model estimation (e.g., logistic regression and neural networks), model evaluation (e.g., gains chart, profit curve, confusion matrix, etc.), and decision tools (e.g., decision analysis and simulation). Finally, radiant.multivariate includes tools to generate brand maps and conduct cluster, factor, and conjoint analysis.

These tools are used in the Business Analytics, Quantitative Analysis, Research for Marketing Decisions, Applied Market Research, Consumer Behavior, Experiments in Firms, Pricing, Pricing Analytics, and Customer Analytics classes at the Rady School of Management (UCSD).

Credits

Radiant would not be possible without R and Shiny. I would like to thank Joe Cheng, Winston Chang, and Yihui Xie for answering questions, providing suggestions, and creating amazing tools for the R community. Other key components used in Radiant are ggplot2, dplyr, tidyr, magrittr, broom, shinyAce, shinyFiles, rmarkdown, and DT. For an overview of other packages that Radiant relies on please see the about page.

License

Radiant is licensed under the AGPLv3. As a summary, the AGPLv3 license requires, attribution, including copyright and license information in copies of the software, stating changes if the code is modified, and disclosure of all source code. Details are in the COPYING file.

The documentation, images, and videos for the radiant.data package are licensed under the creative commons attribution and share-alike license CC-BY-SA. All other documentation and videos on this site, as well as the help files for radiant.design, radiant.basics, radiant.model, and radiant.multivariate, are licensed under the creative commons attribution, non-commercial, share-alike license CC-NC-SA.

If you are interested in using any of the radiant packages please email me at [email protected]

© Vincent Nijs (2026)

Copy Link

Version

Install

install.packages('radiant.model')

Monthly Downloads

1,847

Version

1.6.12

License

AGPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Vincent Nijs

Last Published

September 20th, 2026

Functions in radiant.model (1.6.12)

houseprices

Houseprices
find_min

Find minimum value of a vector
evalreg

Evaluate the performance of different regression models
gbt

Gradient Boosted Trees using XGBoost
find_max

Find maximum value of a vector
kaggle_uplift

Kaggle uplift
ketchup

Data on ketchup choices
evalbin

Evaluate the performance of different (binary) classification models
logistic

Logistic regression
ideal

Ideal data for linear regression
nb

Naive Bayes using e1071::naiveBayes
movie_contract

Movie contract decision tree
minmax

Calculate min and max before standardization
nn

Neural Networks using nnet
pdp_partial

Compute partial dependence for supported model types
plot.confusion

Plot method for the confusion matrix
onehot

One hot encoding of data.frames
mnl

Multinomial logistic regression
pdp_plot

Create Partial Dependence Plots
plot.crs

Plot method for the crs function
plot.evalreg

Plot method for the evalreg function
plot.mnl

Plot method for the mnl function
plot.dtree

Plot method for the dtree function
plot.crtree

Plot method for the crtree function
plot.gbt

Plot method for the gbt function
plot.mnl.predict

Plot method for mnl.predict function
plot.evalbin

Plot method for the evalbin function
plot.nb

Plot method for the nb function
plot.logistic

Plot method for the logistic function
plot.model.predict

Plot method for model.predict functions
plot.nb.predict

Plot method for nb.predict function
plot.uplift

Plot method for the uplift function
plot.repeater

Plot repeated simulation
plot.rforest.predict

Plot method for rforest.predict function
plot.nn

Plot method for the nn function
plot.regress

Plot method for the regress function
predict.crtree

Predict method for the crtree function
plot.simulater

Plot method for the simulater function
plot.rforest

Plot method for the rforest function
pred_plot

Prediction Plots
predict.gbt

Predict method for the gbt function
predict.mnl

Predict method for the mnl function
predict.regress

Predict method for the regress function
predict.logistic

Predict method for the logistic function
predict.nn

Predict method for the nn function
print.gbt.predict

Print method for predict.gbt
print.crtree.predict

Print method for predict.crtree
predict.nb

Predict method for the nb function
predict_model

Predict method for model functions
predict.rforest

Predict method for the rforest function
profit

Calculate Profit based on cost:margin ratio
print.nb.predict

Print method for predict.nb
print.logistic.predict

Print method for logistic.predict
print.nn.predict

Print method for predict.nn
print.regress.predict

Print method for predict.regress
radiant.model-deprecated

Deprecated function(s) in the radiant.model package
print_predict_model

Print method for the model prediction
print.rforest.predict

Print method for predict.rforest
print.mnl.predict

Print method for mnl.predict
radiant.model

radiant.model
radiant.model_viewer

Launch radiant.model in the Rstudio viewer
remove_comments

Remove comments from formula before it is evaluated
scale_df

Center or standardize variables in a data frame
ratings

Movie ratings
rforest

Random Forest using Ranger
radiant.model_window

Launch radiant.model in an Rstudio window
render.DiagrammeR

Method to render DiagrammeR plots
sim_cor

Simulate correlated normally distributed data
sim_summary

Print simulation summary
store.mnl.predict

Store predicted values generated in the mnl function
sdw

Standard deviation of weighted sum of variables
sim_cleaner

Clean input command string
sensitivity

Method to evaluate sensitivity of an analysis
sim_splitter

Split input command string
store.crs

Deprecated: Store method for the crs function
regress

Linear regression using OLS
sensitivity.dtree

Evaluate sensitivity of the decision tree
simulater

Simulate data for decision analysis
summary.evalbin

Summary method for the evalbin function
repeater

Repeated simulation
rig

Relative Information Gain (RIG)
summary.crtree

Summary method for the crtree function
store.model

Store residuals from a model
summary.confusion

Summary method for the confusion matrix
summary.dtree

Summary method for the dtree function
store.nb.predict

Store predicted values generated in the nb function
summary.evalreg

Summary method for the evalreg function
store.rforest.predict

Store predicted values generated in the rforest function
summary.crs

Summary method for Collaborative Filter
summary.simulater

Summary method for the simulater function
summary.repeater

Summarize repeated simulation
summary.nn

Summary method for the nn function
summary.regress

Summary method for the regress function
summary.mnl

Summary method for the mnl function
summary.nb

Summary method for the nb function
store.model.predict

Store predicted values generated in model functions
summary.rforest

Summary method for the rforest function
varimp_plot

Plot permutation importance
var_check

Check if main effects for all interaction effects are included in the model
summary.gbt

Summary method for the gbt function
test_specs

Add interaction terms to list of test variables if needed
varimp

Variable importance using the vip package and permutation importance
summary.logistic

Summary method for the logistic function
summary.uplift

Summary method for the uplift function
write.coeff

Write coefficient table for linear and logistic regression
uplift

Evaluate uplift for different (binary) classification models
vi_radiant

Compute permutation-based variable importance
crtree

Classification and regression trees based on the rpart package
catalog

Catalog sales for men's and women's apparel
autoplot.partial

Plot a partial dependence object
RMSE

Root Mean Squared Error
MAE

Mean Absolute Error
Rsq

R-squared
auc

Area Under the RO Curve (AUC)
confint_robust

Confidence interval for robust estimators
crs

Collaborative Filtering
confusion

Confusion matrix
dtree

Create a decision tree
dtree_parser

Parse yaml input for dtree to provide (more) useful error messages
.as_int

Convenience function used in "simulater"
cv.crtree

Cross-validation for Classification and Regression Trees
cv.gbt

Cross-validation for Gradient Boosted Trees
cv.nn

Cross-validation for a Neural Network
.as_num

Convenience function used in "simulater"
direct_marketing

Direct marketing data
dvd

Data on DVD sales
cv.rforest

Cross-validation for a Random Forest