<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/dataiku-4-1-0-more-support-for-r-users/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://longhowlam.wordpress.com/2017/11/20/dataiku-4-1-0-more-support-for-r-users/"> R – Longhow Lam's Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h2><img data-orig-file="https://longhowlam.files.wordpress.com/2017/11/ddsr.png?w=450&amp;h=183&amp;fit=546%2C183" data-orig-size="507,170" data-medium-file="https://longhowlam.files.wordpress.com/2017/11/ddsr.png?w=450&amp;h=183&amp;fit=546%2C183?w=300" data-attachment-id="2558" data-image-meta="{" data-image-description="" src="https://longhowlam.files.wordpress.com/2017/11/ddsr.png?w=450&h=183&fit=546%2C183" data-permalink="https://longhowlam.wordpress.com/2017/11/20/dataiku-4-1-0-more-support-for-r-users/ddsr/" data-large-file="https://longhowlam.files.wordpress.com/2017/11/ddsr.png?w=450&amp;h=183&amp;fit=546%2C183?w=440" alt="ddsR" data-image-title="ddsR" sizes="(max-width: 546px) 100vw, 546px" data-comments-opened="1" class="wp-image-2558" data-recalc-dims="1"></h2>
<h1>Introduction</h1>
<p>Recently, Dataiku 4.1.0 was released, it now offers much more support for R users. But wait a minute, Data-what? I guess some of you do not know Dataiku, so what is Dataiku in the first place? It is a collaborative data science platform created to design and run data products at scale. The main themes of the product are:</p>
<p><strong>Collaboration &amp; Orchestration</strong>: A data science project often involves a team of people with different skills and interests. To name a few, we have data engineers, data scientists, business analysts, business stakeholders, hardcore coders, R users and Python users. Dataiku provides a platform to accommodate the needs of these different roles to work together on data science projects.</p>
<p><strong>Productivity: </strong>Whether you like hard core coding or are more GUI oriented, the platform offers an environment for both. A flow interface can handle most of the steps needed in a data science project, and this can be enriched by Python or R recipes. Moreover, a managed notebook environment is integrated in Dataiku to do whatever you want with code.</p>
<p><strong>Deployment of data science products:</strong> As a data scientist you can produce many interesting stuff, i.e. graphs, data transformations, analysis, predictive models. The Dataiku platform facilitates the deployment of these deliverables, so that others (in your organization) can consume them. There are dashboards, web-apps, model API’s, productionized model API’s and data pipelines.</p>
<div><img src="https://i2.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAoOAAAAJDkxMTg4NWQxLTgyYjEtNGJiMi1iNThiLWJiMjUyZWRmNWRlMQ.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>There is a free version which contains already a lot of features to be very useful, and there is an paid version, with “<em>enterprise features</em>“. See for the <a rel="nofollow" href="https://www.dataiku.com/" target="_blank">Dataiku website</a> for more info.</p>
<h1>Improved R Support in 4.1.0</h1>
<p>Among many new features, and the one that interests me the most as an R user, is the <strong>improved support for R</strong>. In previous versions of Dataiku there was already some support for R, this version has the following improvements. There is now support for:</p>
<h2>R Code environments</h2>
<p>In Dataiku you can now create so-called code environments for R (and Python). A code environment is a standalone and self-contained environment to run R code. Each environment can have its own set of packages (and specific versions of packages). Dataiku provides a handy GUI to manage different code environments. The figure below shows an example code environment with specific packages.</p>
<div><img src="https://i2.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAo_AAAAJDU2ODE3OGFiLTdiNTgtNDdiOS1hZWEwLTg4OGQzOWY0OGYxMg.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>In Dataiku whenever you make use of R –> in R recipes, Shiny, R Markdown or creating R API’s you can select a specific R code environment to use.</p>
<h2>R Markdown reports &amp; Shiny applications</h2>
<p>If you are working in RStudio you most likely already know R Markdown documents and Shiny applications. In this version, you can also create them in Dataiku. Now, why would you do that and not just create them in RStudio? Well, the reports and shiny apps become part of the Dataiku environment and so:</p>
<ul>
<li>They are managed in the environment. You will have a good overview of all reports and apps and see who has created/edited them.</li>
<li>You can make use of all data that is already available in the Dataiku environment.</li>
<li>Moreover, the resulting reports and Shiny apps can be embedded inside Dataiku dashboards.</li>
</ul>
<div><img src="https://i2.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAvoAAAAJDdjODM1ZjRiLWM1NzAtNDZkZS05NjhlLTAyMzIwMmRiYTczMw.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>The figure above shows a R markdown report in Dataiku, the interface provides a nice way to edit the report, alter settings and publish the report. Below is an example dashboard in Dataiku with a markdown and Shiny report.</p>
<div><img src="https://i2.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAvOAAAAJGNhMTRlMGRkLWRlOGMtNDQxZC05OWI5LTA2NDc3ODMxZTM3OQ.png?w=456&ssl=1" data-recalc-dims="1"></div>
<div></div>
<h2>Creating R API’s</h2>
<p>Once you created an analytical model in R, you want to deploy it and make use of its predictions. With Dataiku you can now easily expose R prediction models as an API. In fact, you can expose any R function as an API. The Dataiku GUI provides an environment where you can easily set up and test an R API’s. Moreover, The Dataiku API Node, which can be installed on a (separate) production server imports the R models that you have created in the GUI and can take care of load balancing, high availability and scaling of real-time scoring.</p>
<p>The following three figures give you an overview of how easy it is to work with the R API functionality.</p>
<p>First, define an API endpoint and R (prediction) function.</p>
<div><img src="https://i2.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAA2KAAAAJGFhZDM4OTZhLTJmOTUtNDRlMy05ZGJiLTQ1YzUwMjVjYmFlOQ.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>Then, define the R function, it can make use of data in Dataiku, R objects created earlier or any R library you need.</p>
<div><img src="https://i1.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAy9AAAAJGY5NjVhOThmLWVhZjgtNGY0MC05ZWFkLTg3ZjgwMTQ5MjFkNQ.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>Then, test and deploy the R function. Dataiku provides a handy interface to test your function/API.</p>
<div><img src="https://i1.wp.com/media.licdn.com/mpr/mpr/AAIABADGAAAAAQAAAAAAAAtxAAAAJDA3N2ZlZmNhLTIyNWEtNGUzOC1hN2NhLTlhMzlmYmRlYWU3OQ.png?w=456&ssl=1" data-recalc-dims="1"></div>
<p> </p>
<p>Finally, once you are satisfied with the R API you can make a package of the API, that package can then be imported on a production server with Dataiku API node installed. From which you can then serve API requests.</p>
<h1>Conclusion</h1>
<p>The new Dataiku 4.1.0 version has a lot to offer for anyone involved in a data science project. The system already has a wide range support for Python, but now with the improved support for R, the system is even more useful to a very large group of data scientists.</p>
<p>Cheers, Longhow.</p>
<p> <a rel="nofollow" href="https://feeds.wordpress.com/1.0/gocomments/longhowlam.wordpress.com/2557/" target="_blank"><img border="0" alt="" src="https://feeds.wordpress.com/1.0/comments/longhowlam.wordpress.com/2557/"></a> <img border="0" alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" data-recalc-dims="1"></p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://longhowlam.wordpress.com/2017/11/20/dataiku-4-1-0-more-support-for-r-users/"> R – Longhow Lam's Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/UAAI86RWrfk" height="1"></a></div>