Coder Social home page Coder Social logo

radiant's Introduction

Radiant - Business analytics using R and Shiny

Radiant development has moved to https://github.com/radiant-rstats

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/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
<iframe width="640" height="375" src="https://www.youtube.com/embed/7L3hDpLw53I" frameborder="0" allowfullscreen></iframe>

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.

Note: For Windows users with data that contain multibyte characters please make sure your data are in ANSI format so R(adiant) can load characters correctly.

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

  • Required: R version 3.3.0 or later
  • Required: A modern browser (e.g., Chrome or Safari). Internet Explorer (version 11 or higher) should work as well
  • Required: Rstudio

If you use Rstudio (version 0.99.893 or later) you can start and update Radiant through the Addins menu at the top of the screen. To install the latest version of Radiant for Windows or Mac, with complete documentation for off-line access, open R(studio) and copy-and-paste the command below:

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/", type = 'binary')

Once all packages are installed select Radiant from the Addins menu in Rstudio or use the command below to launch the app:

radiant::radiant()

See the installing radiant page for details.

Optional: You can also create a launcher on your Desktop to start Radiant by typing radiant::launcher() in the R(studio) console and pressing return. A file called radiant.bat (windows) or radiant.command (mac) will be created that you can double-click to start Radiant in your default browser. The launcher command will also create a file called update_radiant.bat (windows) or update_radiant.command (mac) that you can double-click to update Radiant to the latest release.

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 http://radiant-rstats.github.io/docs/ and in the Radiant web interface (the icons on each page and the icon in the navigation bar).

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.

Running Radiant on shiny-server

You can also host Radiant using shiny-server. First, install radiant on the server using the command below:

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")

Then clone the radiant repo and point shiny-server to the inst/app/ directory. As a courtesy, please let me know if you intend to use Radiant on a server.

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 state (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-state.rda through the Data > Manage tab. Go to Data > View and Data > Visualize to see some of the settings. There is also a report in R > Report that was created using the Radiant interface. The html file radiant-state.html contains the output.

A related feature in Radiant is that state is maintained if you accidentally navigate to another 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 and r_state will be put into Rstudio's global workspace. If you start radiant again using radiant() it will use these lists to restore state. This can be convenient if you want to make changes to a data file in Rstudio and load it back into Radiant. 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 is available on GitHub at https://github.com/radiant-rstats. radiant.data, offers data loading, saving, viewing, visualizing, combining, and transforming tools. 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, Consumer behavior, Experiments in firms, 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, rmardown, and DT. For an overview of other packages that Radiant relies on please see the about page.

License

Radiant is licensed under the AGPLv3. The documentation and videos on this site as well as the Radiant help files are licensed under the creative commons attribution, non-commercial, share-alike license CC-NC-SA.

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.

If you are interested in using Radiant please email me at [email protected]

© Vincent Nijs (2016) Creative Commons License

radiant's People

Contributors

mostly-harmless avatar rsm-aaa111 avatar vnijs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

radiant's Issues

The App ui does not reload if i refresh the browser

Helo

I download your application and try to run it locally on my computer
everything just work fine the first time i start the application
the problem is when i refresh the browser the ui only reload the navigation bar.

if i restart the R session, everything is loading properly.
but if i refresh the browser again, the ui will not reload anymore.

i am using shiny 0.10.0, and R 3.1.0

the warning message in R console are as follows:
Warning in addResourcePath("figures", "tools/help/figures/") :
Overriding existing prefix figures => C:\Users\Asus\Documents\R\shiny\fastedit\tools\help\figures
Shiny URLs starting with /figures will mapped to C:\Users\Asus\Documents\R\shiny\radiant-master\inst\marketing\tools\help\figures\

thank you

Regression - Center Option

Hi Vincent,

I don't understand why in Radiant when the "center" option is used for linear regression, the estimated intercept is 0. Using the Diamonds dataset, when I use the transform tab to meancenter the independent variables, the estimated intercept is different than 0 (see image below).
image
I am guessing that the "center" option also meancenters the DV. In that case, the explanation on website should change to reflect that:
image

If possible, could you update the "center" option so that it only centers the explanatory variables? Or perhaps add a new option.

Thanks

Save decision tree as svg/png file

Hi,
In actual version we can save dtree as pdf or ps using actionLink function.
If I am right, dtree plot uses mermaid library from DiagrammeR package and It is not the same process to save diagrammeR plot compared the standard plots that use plot_downloader function (as in Visualize panel).
It is not yet clear for me, how plot_downloader captures plot_name from current plot. If it is possible to have simple example.

Any suggestion to use plot_downloader with DiagrammeR mermaid or grViz plots?
Thanks
Karim

manage Panel : error with S4Vectors package

Hi Vincent,
I have not changed anything since one month in manage.R file. But today I got this error
I'am using S4Vectors 0.6.1.
The same error is also in tranform panel.
Any suggestion?
Thanks
Karim

error in evaluating the argument 'x' in selecting a method for function 'slice': Error in .Call2("Rle_constructor", values, lengths, check, 0L, PACKAGE = "S4Vectors") :
Rle of type 'list' is not supported

Can't run the base app

Sadly it won't work for me:

bildschirmfoto 2014-12-16 um 01 40 00

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
[1] de_DE.UTF-8/de_DE.UTF-8/de_DE.UTF-8/C/de_DE.UTF-8/de_DE.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_0.10.1

loaded via a namespace (and not attached):
[1] bitops_1.0-6    caTools_1.17.1  digest_0.6.4    htmltools_0.2.6 httpuv_1.3.0    Rcpp_0.11.3     RJSONIO_1.3-0  
[8] tools_3.1.2     xtable_1.7-4   

Unable to install latest version of radiant

I am facing issue in installing dependency - data.tree. Here is the complete log:

also installing the dependency ‘data.tree’
trying URL 'http://vnijs.github.io/radiant_miniCRAN/src/contrib/data.tree_0.1.9.tar.gz'

Content type 'application/octet-stream' length 898890 bytes (877 KB)

downloaded 877 KB

  • installing source package ‘data.tree’ ...
    ** R
    ** data
    ** demo
    ** inst
    ** preparing package for lazy loading
    Error in R6Class("Node", lock_objects = FALSE, public = list(parent = NULL, :
    unused argument (lock_objects = FALSE)
    Error : unable to load R code in package ‘data.tree’
    ERROR: lazy loading failed for package ‘data.tree’
  • removing ‘/home/bolaka/R/x86_64-pc-linux-gnu-library/3.2/data.tree’
    Warning in install.packages :
    installation of package ‘data.tree’ had non-zero exit status
    ERROR: dependency ‘data.tree’ is not available for package ‘radiant’
  • removing ‘/home/bolaka/R/x86_64-pc-linux-gnu-library/3.2/radiant’
    Warning in install.packages :
    installation of package ‘radiant’ had non-zero exit status

Chi- Squared distribution Mean

While exploring the chi-squared distribution i stumbled across that radiant displays the mean of chi squared distribution as DOF (degrees of freedom) +1, where as it should be DOF +2. The graph however shows the mean and mode correctly .

lost the sync of my fork

Hi,
I lost my sync fork when I changed the name of my repository.
I added a new upstream

git remote add upstream https://github.com/vnijs/radiant.git
git fetch upstream

The second command replaced my fork by radiant and I can't merge master/upstream

git merge upstream/master

Is there a way to compare and merge again my fork with radiant?
Thanks

Problem with filter-functionality

I waited a bit to post this until I checked on multiple browsers and multiple systems, but I cannot get the filter-cuntion to work.

Everytime, I check the box to apply a filter (anywhere within the marketing instance, either on the "pure" r-side nor on the "batch"-side with "win_launcher()") the field for entering the condition is displayed, but nothing within it is actually applied to the data. And I mean really nothing!

I am no experienced programmer nor did I have the time to dig into the potential source of this but I hope that this blunt description may help a little.

Tested systems: W7 64bit, one with all admin rights, one with totally restricted rights. Everywhere, all functions worked but the filter.

Browsers: Firefix 37.0.2, Chrome 42.0.2311.135 and IE11 (newest version)

Maybe I am just not seeing the obvious, but I don't know....

Add encoding="UTF-8" argument to source() function

Hi vnijs,
First many thanks for building such a wonderful shiny app!
One little thought: I think claiming file encoding explicitly by adding encoding = "UTF-8" to the source() function will allow your code to be more portable to people working on windows and using languages other than English. Without it, most non-ascii characters in the sourced file will not display correctly.

Geom_line color

First, thanks a lot for this great tool offering a great GUI for non R user.

I began to test it few days ago and I realized that the visualize function was not really behaving how I would have like or how ggplot2 is.

Here an example with the diamonds dataset :

visualize(dataset = "diamonds", xvar = "clarity", yvar = "carat", type = "line", color = "color")

visualize 1

If I then modify just a bit the visualize function to have the same behavior than ggplot2:

visualize

I would really appreciate to have such possibility with radiant. I may not understand all the potential problem that my modification would do but I ask you to consider it :)

Here the changes :

else if (type == "line") {
    itt <- 1
    for (i in xvar) {
        for (j in yvar) {
            if (color == "none") {
              if (is.factor(dat[[i]])) {
                tbv <- if (is.null(byvar)) 
                  i
                else c(i, byvar)
                tmp <- dat %>% group_by_(.dots = tbv) %>% 
                  select_(j) %>% summarise_each(funs(mean))
                plot_list[[itt]] <- ggplot(tmp, aes_string(x = i, 
                  y = j)) + geom_point() + geom_line(aes(group = 1))
              }
              else {
                plot_list[[itt]] <- ggplot(dat, aes_string(x = i, 
                  y = j)) + geom_line()
              }
            }
            else {
              if (is.factor(dat[[i]])) {
                tbv <- if (is.null(byvar)) 
                  i
                else c(i, byvar)
                print(tbv)
                tmp <- dat %>% group_by_(.dots = tbv) %>% 
                  select_(j, color) %>% summarise_each(funs(mean))

Original code:

                    plot_list[[itt]] <- ggplot(tmp, aes_string(x = i, 
                      y = j, color = color)) + geom_point() + 
                      geom_line(aes(group = 1))

New code:

                    plot_list[[itt]] <- ggplot(tmp, aes_string(x = i, 
                      y = j, color = color, group=color)) + geom_point() + 
                      geom_line()
              }
              else {

Original code :

                    plot_list[[itt]] <- ggplot(dat, aes_string(x = i, 
                      y = j, color = color)) + geom_line()

New code:

                    plot_list[[itt]] <- ggplot(dat, aes_string(x = i, 
                      y = j, color = color, group=color)) + geom_line()
              }
            }

            if ("log_x" %in% axes) 
              plot_list[[itt]] <- plot_list[[itt]] + xlab(paste("log", 
                i))
            if ("log_y" %in% axes) 
              plot_list[[itt]] <- plot_list[[itt]] + ylab(paste("log", 
                j))
            itt <- itt + 1
        }
    }
}

missing tools/help/figures subdirectory for base app

Hello, I downloaded a .zip archive of your application via the GitHub page, and I kept getting errors about an invalid path in the addResourcePath("figures", "../base/tools/help/figures/") line in global.R for your base application. I saw that there was no figures subdirectory in the base/tools/help area, so I created a base/tools/help/figures subdirectory and then the application ran successfully. In case other users encounter this error when running your base application I wanted to make you aware of this. The other two applications (marketing and quant) have the figures subdirectory present.

make my bar graphs have manually selected colors

anyway to do that?

visualize(dataset = "W", xvar = "NumberOfPeople", yvar = "Sentiment", bins = 4, alpha = 0.54, data_filter = "Belong", custom = TRUE)+
theme(axis.text = element_text(size = 24)

)

I tried col, color, colour as a regular paramters, according tothe function, it should just be color...

any thoughts?

Radiant will not execute correctly: MathJax issue

Error when trying to run Radiant:
I see this in the browser (chrome)
ERROR: path[1]="/www/MathJax/": No such file or directory

i see this on the command line

radiant("marketing")

Listening on http://127.0.0.1:7160
Error in normalizePath(directoryPath, mustWork = TRUE) :
path[1]="/www/MathJax/": No such file or directory
Error in normalizePath(directoryPath, mustWork = TRUE) :
path[1]="/www/MathJax/": No such file or directory

Info:
RStudio
Version 0.99.465 – © 2009-2015 RStudio, Inc.

R.Version()
$platform
[1] "x86_64-apple-darwin13.4.0"

$arch
[1] "x86_64"

$os
[1] "darwin13.4.0"

$system
[1] "x86_64, darwin13.4.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "2.1"

$year
[1] "2015"

$month
[1] "06"

$day
[1] "18"

$svn rev
[1] "68531"

$language
[1] "R"

$version.string
[1] "R version 3.2.1 (2015-06-18)"

$nickname
[1] "World-Famous Astronaut"

packageVersion("radiant")
[1] ‘0.1.83’

Add URL param that would cause the session to NOT be saved

I saw @vnijs share a link to a radiant session that was part of a bug report. I clicked the link, moved to a different tab, and now the original link goes to my new tab.

It could be useful if the URL was ...?SSUID=blahblahblah&update=0 which would tell radiant to just bring me to the same point as that session, but not record any further actions.

R CMD check fails with dev version of tidyr

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.cross_tabs
> ### Title: Plot method for the cross_tabs function
> ### Aliases: plot.cross_tabs
> 
> ### ** Examples
> 
> result <- cross_tabs("newspaper", "Income", "Newspaper")
> plot(result, ct_check = c("observed","expected","chi_sq"))
Error in gather_.data.frame(., "variable", "values") : 
  argument "gather_cols" is missing, with no default
Calls: plot ... _fseq -> freduce -> withVisible -> <Anonymous> -> sshhr
Execution halted

Any ideas?

avoid MathJaxR dependency

Dear Dr Vincent,
To avoid github depends, I have to bundle MathJaxR to my radiantFork.
I copied

MathJaxR/inst/MathJax to radiantFork/inst/MathJax
MathJax/R/withMathJax.R to radiantFork/R/withMathJax.R

I changed the two global.R files :

if (r_local) {
  addResourcePath("MathJax", file.path(system.file(package = "radiantFork"), "MathJax/"))
  withMathJax <- radiantFork::withMathJaxR
}

and I removed MathJaxR depends from description files and imports from /R files.
There isn't

importFrom(MathJaxR withMathJaxR)

in namespace. but there is

export(withMathJax)

When I build my radiantFork, I have always the Warning message of the MathJaxR depends

* checking for file bioCancer/DESCRIPTION ... OK
* preparing bioCancer:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
      -----------------------------------
* installing *source* package bioCancer ...
** R
** data
*** moving datasets to lazyload DB
Warning: namespace MathJaxR is not available and has been replaced
by .GlobalEnv when processing object withMathJax
Loading required package: DBI

I removed radiantFork/build folder.
I removed dependencies.R file.
I searched for all files in package that have 'MathJaxR' string using bash/regex.
I removed .Rdata and Rhistory hidden files

Only withMathJax.R and global.R have 'withMathJax' string.

please, have you an idea from where the dependency of MathJaxR always exists?
Thanks

logo

not really an issue, but a neat logo or some sort of branding would be nice for this thing :)

I am refering to it in my school presentation for my masters and all I have to go by is "Radiant"... I might put a picture of a diamon or something :)

trouble loading radiant

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘nlme’ 3.1-122 is already loaded, but >= 3.1.123 is required
In addition: Warning message:
package ‘radiant’ was built under R version 3.2.4
Error: package or namespace load failed for ‘radiant’

I downloaded nlme and it still isnt working.. got any ideas as to why?

Thanks!

Btw, good job!

Combine two datasets by rownames

Dear Dr Vincent,
I notice that row names are not supported in the default version.
I am trying to make visible the row names in Manage/View panel and combine two different data frames (do not have the same column names) by row names.
for example in View.R file it is enough to change rownames = TRUE in line 148 and 50.
But with 'Manage' panel is not the same format of table.
1- How can I make visible row names in Manage and Combine panels?
Thanks
Karim

Download button doesn't work properly

When click the download button on View page, it gives the error "slice condition does not evaluate to an integer or numeric vector. " Other download buttons have similar issues.

normalize option for density plots

When you do facet density plots add an option yo normalize the density between 0-1. This makes comparison of density plots lot easier

Enhancement ideas

  • Gather and Spread in Data > Transform
  • Poisson (with offset option)
  • Marginals for probit
  • Conjoint market simulation and estimation for multiple respondents
  • etc.

error message showed up when initially double-check radiant.bat(marketing)

After I installed the radiant and clicked the radiant.bat(marketing) , the cmd windows showed the message as follows:
Listening on http://127.0.0.1:4444
Error in eval(substitute(expr), envir, enclos) :
corrupt 'grouped_df', contains 70 rows, and 168 rows in groups
Error in eval(substitute(expr), envir, enclos) :
corrupt 'grouped_df', contains 70 rows, and 168 rows in groups
Error in eval(substitute(expr), envir, enclos) :
corrupt 'grouped_df', contains 70 rows, and 168 rows in groups

Training Variable: same seed, different outputs

Hi again Vincent,

Sorry to bother you again. I was trying to teach validation analysis to my students, and although all students set the seed to a specific value (111), students got two different results on different computers. I thought it was related to Windows vs. MacOS or 32bits vs. 64bits but these two factors were not the issue.

It would be great if you can check this to see what might be the issue. Last year when I ran the same analysis, all 170+ students got similar results.

Best
Koushyar

Decision Tree: Issue with cost

First, thanks for creating such a great tool. The problem I'm running into with decision trees is that the costs from previous branches don't seem to be inherited at all. Also the terminal payoff doesn't seem to be taking cost into account. I see that you may have created a fix for this but it doesn't seem to be implemented.

  • Alyssa

Error: could not find function "nmissing" in Explore tab

I get the message above when clicking on the Explore tab in the diamond dataset. I am running Radiant within a shiny server (inst/base) directory using a checked-out version of the master branch. My shiny server logfile shows:

Listening on http://127.0.0.1:60101
Error in eval(substitute(expr), envir, enclos) :
  could not find function "nmissing"
Error: could not find function "nmissing"
Execution halted

The logfile shows all packages loading correctly. Any help would be appreciated.

X11 connection rejected because of wrong authentication.

Just pulled the latest master, and get the error above when executing runApp() inside inst/base. This seems to stop radiant from executing entirely. I have run the
install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/") command already.

I've seen this type of error before when some library needs tk -- is there a new dependency?

[resolved]Radiant: clipboard

Hi,
I did not used any example data. I just checked "clipboard" to paste some thing. The default data is diamonds.

Dear Dr Vincent,

Using this link, the clipboard works correctly .
When I use actual R version
library('radiant')
radiant('quant')

or R devel from GitHub.

shiny::runApp('inst/quant')

The text area does not appear and when I clic on "paste data", the R session aborted with this message:
incompatible final line found by readTableHeader on 'pbpaste'

Thanks for help,
Karim

add column with a factor: transform > create

Hi Dr Vincent,
I would like to combine data frames. Before that, I need to add a column for every df with a class.
for example I would like to add new column named 'Origin' :
diamonds$Origin = 'Africa' (all rows have 'Africa')
I used Transform > create but I can't add a character/factor as variable.

diamonds$Origin = 'Africa'
Origin = rep('Africa',nrow(diamonds)
Origin = rep(’Africa’,3000)

How to?
Thanks

exists(r_data[['MyDataset']], envir=.GlobalEnv)

Hi,
how can I check programmatically if my new object exists or not under r_data.

I tested:

 exists('Mydatase', envir=.GlobalEnv)
 exists(r_data[['Mydatase']], envir=.GlobalEnv)
not_available('Mydatase')

Thanks

Visualize and explore panels v0.2.40

HI Vincent,
I installed the last version V0.2.40.
I note in Visualize sidebar, the dropdown variables are missing (also explore panel).
The new checkbox(Line, Loess, Jitter) are visible only once.
Maybe these news features are in progress..
Thanks
Karim

Error in installation from GitHub

I'm attempting to install Radiant from GitHub using devtools. I'm getting the following error, however:

** preparing package for lazy loading
Error : object ‘print.arrange’ is not exported by 'namespace:gridExtra'
ERROR: lazy loading failed for package ‘radiant’

I'm using R 3.2.1. Thanks!

  • Drew

r 3.4

how can i get radiant for 3.4? When I try to install radiant on my ubuntu server, I get this message

package ‘radiant’ is not available (for R version 3.2.4 Revised)

strip archives from git history

Cloning this repository is very painful because of the previous Mini-Cran inclusion.

I would suggest you use the bfg to clean the repo history of all archive files.

The following reduced the radiant directory size from over 700M to 61M on my machine.

alias bfg=java -jar bfg-1.12.3.jar
bfg -D '*.{gz,tgz,zip}' radiant
cd radiant && git reflog expire --expire=now --all && git gc --prune=now --aggressive

Code is not evaluated when running Radiant on a server

I noticed this when I was trying out Radiant on a Digital Ocean shiny server. In the Code and Report tabs, messages come up indicating that code and rmd files are not evaluated when Radiant is running on a server.

I was able to find where these flags are in the code base, but had some difficulty finding comments or documentation on why this is disabled.

Can I get these features to work on a server simply by commenting out the !r_local statements?

Is there any unexpected behaviour I should look for when I do this?

replace blank with NA

Hi Dr Vincent,
Transform > Remove missing value delete row with at less one blank.
If I have some missing value in different lines I expect to loose a lot of data.
How can I replace blank by NA

df[df==""]  <- NA

Thanks

init.R: load previous state or look in global memory

Hi,
suddenly, I had this error message:

shiny::runApp('inst/base')
Listening on http://127.0.0.1:7767
Error in readRDS(fn) : error reading from connection
ERROR: [on_request_read] connection reset by peer
ERROR: [on_request_read] connection reset by peer

When there is no old r_state, r_data, r_session, .RData file and .Rhistory, I can't run my radiant fork.
Any Suggestion?
Thanks

ls()
 [1] "clusterProfilesEnv" "DOSEEnv"            "GOSemSimEnv"        "ICEnv"              "js_head"            "nav_ui"             "r_encoding"         "r_functions"        "r_help"            
[10] "r_local"            "r_path"             "r_pkgs"             "r_sessions"         "SemSimCache"        "shared_ui"          "withMathJax"       
sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
 [1] stats4    parallel  tcltk     stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] XML_3.98-1.3           RCurl_1.95-4.7         bitops_1.0-6           clusterProfiler_2.2.3  DOSE_2.6.4             org.Hs.eg.db_3.1.2     RSQLite_1.0.0          DBI_0.3.1             
 [9] AnnotationFuncs_1.18.0 AnnotationDbi_1.30.1   GenomeInfoDb_1.4.1     IRanges_2.2.5          S4Vectors_0.6.1        geNetClassifier_1.8.0  minet_3.26.0           EBarrays_2.32.0       
[17] lattice_0.20-33        Biobase_2.28.0         BiocGenerics_0.14.0    DT_0.1.28              metabologram_0.1       coffeewheel_0.1        cgdsr_1.2.5            scales_0.3.0          
[25] yaml_2.1.13            data.tree_0.2.1        shinyAce_0.2.1         rmarkdown_0.8          readr_0.1.1            htmlwidgets_0.5        broom_0.3.7            dplyr_0.4.3           
[33] tidyr_0.3.1            magrittr_1.5           pryr_0.1.2             ggdendro_0.1-17        ggplot2_1.0.1          lubridate_1.3.3        knitr_1.11             AlgDesign_1.1-7.3     
[41] wordcloud_2.5          RColorBrewer_1.1-2     psych_1.5.8            GPArotation_2014.11-1  gridExtra_2.0.0        car_2.1-0              DiagrammeR_0.7         shiny_0.12.2          

loaded via a namespace (and not attached):
 [1] nlme_3.1-122       pbkrtest_0.4-2     httr_1.0.0         tools_3.2.1        R6_2.1.1           lazyeval_0.1.10    mgcv_1.8-7         colorspace_1.2-6   nnet_7.3-11        mnormt_1.5-3      
[11] quantreg_5.19      SparseM_1.7        slam_0.1-32        stringr_1.0.0      digest_0.6.8       minqa_1.2.4        XVector_0.8.0      MathJaxR_0.11      htmltools_0.2.6    lme4_1.1-9        
[21] rstudioapi_0.3.1   jsonlite_0.9.17    GOSemSim_1.26.0    R.oo_1.19.0        GO.db_3.1.2        Matrix_1.2-2       Rcpp_0.12.1        munsell_0.4.2      proto_0.3-10       R.methodsS3_1.7.0 
[31] stringi_0.5-5      zlibbioc_1.14.0    MASS_7.3-44        plyr_1.8.3         qvalue_2.0.0       grid_3.2.1         DO.db_2.9          Biostrings_2.36.1  splines_3.2.1      KEGGREST_1.8.0    
[41] igraph_1.0.1       reshape2_1.4.1     codetools_0.2-14   png_0.1-7          nloptr_1.0.4       httpuv_1.3.3       MatrixModels_0.4-1 gtable_0.1.2       assertthat_0.1     mime_0.4          
[51] xtable_1.7-4       e1071_1.6-7        class_7.3-14       memoise_0.2.1      cluster_2.0.3     

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.