Home Update Top R suggestions and information from RStudio Global 2021

Top R suggestions and information from RStudio Global 2021

359
Do More With R [video hero/video series] - R Programming Guide - Tips & Tricks


Here are a number of the greatest suggestions, methods, and takeaways for R customers from this 12 months’s rstudio::international(2021) digital convention:

Speed up your R code

The new xrprof package deal builds on code profiling (efficiency measuring) provided by base R’s Rprof() with these added options:

  • It can run on a distant server, not simply domestically, permitting you to see what’s occurring in your manufacturing surroundings;
  • It can see bottlenecks in C/C++ code, not simply R code — particularly helpful for R package deal builders utilizing C or C++.

And, it is a drop-in alternative for the ecosystem of Rprof() add-on instruments, mentioned writer Aaron Jacobs, senior information scientist at Crescendo. This venture was funded partially by the R Consortium.

Customize your R information visualizations

The thematic package deal allows you to customise plot defaults for ggplot2, lattice, and base R graphics. It works inside RStudio, R Markdown paperwork, and Shiny apps. thematic dataviz code may look one thing like this:

thematic_on(bg = "#222222", fg = "white", accent = "#0CE3AC", font = "Oxanium")

earlier than operating a plot. The package deal consists of assist for Google fonts.

Improve your R Markdown docs & Shiny apps

Customize design

The bslib package deal goals to make it simpler to create customized themes for Shiny apps and R Markdown paperwork. It ought to be on CRAN quickly, however in the meantime it is accessible to put in by way of remotes::install_github("rstudio/bslib"), in response to RStudio’s Thomas Mock. This is a successor to the older bootstraplib package deal. 

There are quite a lot of different packages that may aid you create extra compelling Shiny person interfaces. At a pre-conference workshop, Dominik Krzemiński with the Shiny consulting agency Appsilon shared a few of his favorites:

ShinyJS – generate JavaScript UI actions equivalent to exhibiting and hiding elements, however with R code
ShinyWidgets – entry further enter widgets past what’s constructed into Shiny
ShinyCSSLoaders – add animations whereas information masses or plots are rendering
bs4Dash – construct a model of Shiny dashboards utilizing Bootstrap model 4
shinyMobile – create cellular and desktop Shiny apps utilizing Framework7 because the underpinning
shiny.semantic – make the most of the Fomantic UI improvement framework (a department of SemanticUI) to shine your app’s feel and appear

In addition to shiny.semantic, Appsilon has created a number of extra open-source Shiny extensions. You can see the whole providing at shiny.instruments

Appsilon introduced that two extra are on the way in which: shiny.fluent, a UI framework that allows you to use Microsoft…



Source hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here