<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/stencila-an-office-suite-for-reproducible-research/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://r-posts.com/stencila-an-office-suite-for-reproducible-research/"> R-posts.com</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><strong><span>Stencila launches the first version of its (open source) word processor and spreadsheet editor designed for researchers.</span><br>
</strong><br>
<em>By Michael Aufreiter, Substance, and Aleksandra Pawlik and Nokome Bentley, Stencila</em></p>
<p>Stencila is an open source office suite designed for researchers. It allows the authoring of interactive, data-driven publications in visual interfaces, similar to those in conventional office suites, but is built from the ground up for reproducibility.</p>
<p>Stencila aims to make it easier for researchers with differing levels of computational skills to collaborate on the same research article. Researchers used to tools like Microsoft Word and Excel will find Stencila’s interfaces intuitive and familiar. And those who use tools such as Jupyter Notebook or R Markdown are still able to embed code for data analysis within their research articles. Once published, Stencila documents are self-contained, interactive and reusable, containing all the text, media, code and data needed to fully support the narrative of research discovery.</p>
<p><img data-orig-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image2.png?fit=995%2C689&amp;ssl=1" data-orig-size="995,689" data-medium-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image2.png?fit=433%2C300&amp;ssl=1" data-attachment-id="556" data-image-meta="{" data-image-description="" src="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image2.png?resize=433%2C300" data-permalink="https://r-posts.com/stencila-an-office-suite-for-reproducible-research/image2/" data-large-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image2.png?fit=450%2C312&amp;ssl=1" alt="" data-image-title="image2" sizes="(max-width: 433px) 100vw, 433px" width="433" data-comments-opened="1" class="wp-image-556" data-recalc-dims="1" height="300"><br>
<span>Source: </span><a rel="nofollow" href="https://stenci.la/" target="_blank">https://stenci.la</a></p>
<p>The Stencila project aims to be part of the wider vision to enable the next generation of research article – all the way from authoring through to publication as a reproducible, self-contained webpage. A key limitation of the current research publishing process is that conventional document formats (e.g. Word, PDF and LaTeX) do not support the inclusion of reproducible research elements, nor do they produce content in the structured format used for science publishing and dissemination (XML). Stencila aims to remove the need for manual conversion of content from source documents to XML and web (HTML) publishing formats, whilst enabling the inclusion of source data and computational methods within the manuscript. We hope that establishing a digital-first, reproducible archive format for publications will facilitate research communication that is faster and more open, and which lowers the barrier for collaboration and reuse. The development of Stencila is driven by community needs and in coordination with the goals of the<span> </span><a rel="nofollow" href="https://elifesciences.org/labs/7dbeb390/reproducible-document-stack-supporting-the-next-generation-research-article" target="_blank">Reproducible Document Stack</a>, an initiative started by eLife, Substance and Stencila.</p>
<section>
<header>
<h3>A word processor for creating journal-ready scientific manuscripts</h3>
</header>
<div>
<p>Stencila’s article editor builds on<span> </span><a rel="nofollow" href="http://substance.io/texture/" target="_blank">Texture</a>, an open source editor built for visually editing JATS XML documents (a standard widely used by scientific journals). Supporting all elements of a standardised research article, the editor features semantic content-oriented editing that allows the user to focus on the research without worrying about layout information, which is normally stripped during the publishing process. While Texture implements all static elements (abstract, figures, references, citations and so on), Stencila extends Texture with code cells which enable computed, data-driven figures.</p>
</div>
</section>
<section>
<header>
<h3>Spreadsheets for source data and analysis</h3>
</header>
<div>
<p>In Stencila, datasets are an integral part of the publication. They live as individual spreadsheet documents holding structured data. This data can then be referenced from the research article to drive analysis and plots. As within Excel, cells can contain formulas and function calls to run computations directly in a spreadsheet. But not only can users enter simple expressions, they can also add and execute code in a variety of supported programming languages (at the moment R, Python, SQL and Javascript).</p>
<div><iframe allowfullscreen="true" src="https://www.youtube.com/embed/EzrR96PDnO8?version=3&rel=1&%23038;fs=1&%23038;autohide=2&%23038;showsearch=0&%23038;showinfo=1&%23038;iv_load_policy=1&%23038;wmode=transparent" width="450" type="text/html"></iframe></div>
<p>A walk-through of some of the features of Stencila, using <a rel="nofollow" href="http://builds.stenci.la/stencila/fix-regressions-2018-06-01-142af5d/example.html?archive=introduction" target="_blank">this Stencila Article</a>. Source: <a rel="nofollow" href="https://youtu.be/EzrR96PDnO8" target="_blank">YouTube</a>; video <a rel="nofollow" href="https://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">CC-BY</a> Stencila.</p>
<header>
<h3>Code evaluation in the browser and beyond</h3>
</header>
<div>
<p>Stencila’s user interfaces build on modern web technology and run entirely in the browser – making them available on all major operating systems. The predefined functions available in Stencila use Javascript for execution so they can be run directly in the editor. For example, the plotly() function generates powerful, interactive visualizations solely using Plotly’s Javascript library.</p>
<p><img data-orig-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image1.png?fit=1999%2C1549&amp;ssl=1" data-orig-size="1999,1549" data-medium-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image1.png?fit=387%2C300&amp;ssl=1" data-attachment-id="557" data-image-meta="{" data-image-description="" src="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image1.png?resize=387%2C300" data-permalink="https://r-posts.com/stencila-an-office-suite-for-reproducible-research/image1/" data-large-file="https://i0.wp.com/r-posts.com/wp-content/uploads/2018/07/image1.png?fit=450%2C349&amp;ssl=1" alt="" data-image-title="image1" sizes="(max-width: 387px) 100vw, 387px" width="387" data-comments-opened="1" class="wp-image-557" data-recalc-dims="1" height="300"></p>
<p><span>Stencila can also connect to R, Python and SQL sessions, allowing more advanced data analysis and visualization capabilities. Stencila’s execution engine keeps a track of the dependency between code cells, enabling a reactive, spreadsheet-like programming experience both in Stencila Articles and Sheets.<br>
</span></p>
<div><iframe allowfullscreen="true" src="https://www.youtube.com/embed/yeG9msYKSXg?version=3&rel=1&%23038;fs=1&%23038;autohide=2&%23038;showsearch=0&%23038;showinfo=1&%23038;iv_load_policy=1&%23038;wmode=transparent" width="450" type="text/html"></iframe></div>
<p><span>An example of using R within a Stencila Sheet. Source: </span><a rel="nofollow" href="https://youtu.be/yeG9msYKSXg" target="_blank">YouTube</a><span>; video </span><a rel="nofollow" href="https://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">CC-BY</a><span> Stencila.<br>
</span><span><br>
Reproducible Document Archive (Dar)<br>
</span><span><br>
</span></p>
<div>
<p>Stencila stores projects in an open file archive format called Dar. A Dar is essentially a folder with a number of files encompassing the manuscript itself (usually one XML per document) and all associated media.</p>
<p><img data-orig-file="https://i2.wp.com/r-posts.com/wp-content/uploads/2018/07/image3.png?fit=1998%2C592&amp;ssl=1" data-orig-size="1998,592" data-medium-file="https://i2.wp.com/r-posts.com/wp-content/uploads/2018/07/image3.png?fit=450%2C133&amp;ssl=1" data-attachment-id="558" data-image-meta="{" data-image-description="" src="https://i2.wp.com/r-posts.com/wp-content/uploads/2018/07/image3.png?resize=450%2C133" data-permalink="https://r-posts.com/stencila-an-office-suite-for-reproducible-research/image3/" data-large-file="https://i2.wp.com/r-posts.com/wp-content/uploads/2018/07/image3.png?fit=450%2C133&amp;ssl=1" alt="" data-image-title="image3" sizes="(max-width: 450px) 100vw, 450px" width="450" data-comments-opened="1" class="wp-image-558" data-recalc-dims="1" height="133"></p>
<p><span>The Dar format is open source: inspect it and provide feedback at </span><a rel="nofollow" href="https://github.com/substance/dar" target="_blank">https://github.com/substance/dar</a></p>
<p>Dar uses existing standards when possible. For instance, articles are represented as JATS XML, the standard preferred by a number of major publishers. The Dar format is a separate effort from Stencila, and aims to establish a strict standard for representing self-contained reproducible publications, which can be submitted directly to publishers. Any other tool should be able to easily read and write such archives, either by supporting it directly or by implementing converters.</p>
<section>
<header>
<h3>Interoperability with existing tools and workflows</h3>
</header>
<div>
<p>Stencila is developed not to replace existing tools, but to complement them. Interoperability is at the heart of the project, with the goal of supporting seamless collaboration between users of Jupyter Notebooks, R Markdown and spreadsheet applications. We are working closely with the communities of existing open source tools to improve interoperability. For instance, we are<span> </span><a rel="nofollow" href="https://github.com/minrk/jupyter-dar" target="_blank">working with the Jupyter team</a><span> </span>on tools to turn notebooks into journal submissions. We are also evaluating whether the Stencila editor could be used as another interface to edit Jupyter Notebooks or R Markdown files: we hope this could help researchers who use existing tools to collaborate with peers who are used to other office tools, such as Word and Excel, and thus encourage wider adoption of reproducible computational research practises.</p>
</div>
</section>
<section>
<header>
<h3>State of development</h3>
</header>
<div>
<p>Over the past two years, we’ve built Stencila from the ground up as a set of modular components that support community-driven open standards for publishing and computation. Stencila Desktop is our prototype of a ‘researcher’s office suite’, built by combining these components into an integrated application. During this beta phase of the project, we are working to address bugs and add missing features, and welcome your feedback and suggestions (see below).</p>
<p>One of our next priorities will be to develop a toolset for generating a web page from a reproducible article in the Dar format. Using<span> </span><a rel="nofollow" href="https://elifesciences.org/labs/e5737fd5/designing-progressive-enhancement-into-the-academic-manuscript" target="_blank">progressive enhancement</a>, the reader should be able to reproduce a scientific article right from the journal’s website in various forms, ranging from a traditional static representation of the manuscript and its figures to a fully interactive, executable publication.</p>
<p>We will continue working on Stencila’s various software components, such as the<span> </span><a rel="nofollow" href="https://github.com/stencila/convert" target="_blank">converter module</a><span> </span>and execution contexts for<span> </span><a rel="nofollow" href="https://github.com/stencila/r" target="_blank">R</a><span> </span>and<span> </span><a rel="nofollow" href="https://github.com/stencila/py" target="_blank">Python</a>, towards improved integration and interoperability with other tools in the open science toolbox (e.g. Jupyter, RStudio and Binder).</p>
</div>
</section>
<section>
<header>
<h3>Get involved</h3>
</header>
<div>
<p>We’d love to get your input to help shape Stencila. Download<span> </span><a rel="nofollow" href="http://stenci.la/" target="_blank">Stencila Desktop</a><span> </span>and take it for a test drive. You could also try porting an existing manuscript over to Stencila using the<span> </span><a rel="nofollow" href="https://github.com/stencila/cli#readme" target="_blank">Stencila command line tool</a>. Give us your feedback and contribute ideas on our<span> </span><a rel="nofollow" href="http://stenci.la/community/" target="_blank">community forum</a><span> </span>or in our<span> </span><a rel="nofollow" href="https://gitter.im/stencila/stencila" target="_blank">chat channel</a>, or drop us an email at<span> </span><a rel="nofollow" href="mailto:aleksandra@stenci.la" target="_blank">aleksandra@stenci.la</a><span> </span>or<span> </span><a rel="nofollow" href="mailto:nokome@stenci.la" target="_blank">nokome@stenci.la</a>.</p>
</div>
</section>
<section>
<header>
<h3>Acknowledgments</h3>
</header>
<div>
<p>Development of Stencila has been generously supported by the Alfred P. Sloan Foundation and eLife.</p>
<p>This post was originally published on <a rel="nofollow" href="https://elifesciences.org/labs/c496b8bb/stencila-an-office-suite-for-reproducible-research?utm_source=Rbloggers&utm_medium=referral&utm_campaign=repost" target="_blank">eLife Labs</a>.</p>
</div>
</section>
<p>eLife welcomes comments, questions and feedback. Please<span> </span><a rel="nofollow" href="https://elifesciences.org/labs/c496b8bb/stencila-an-office-suite-for-reproducible-research#annotations" target="_blank">annotate publicly</a><span> </span>on the article or contact us at innovation [at] elifesciences [dot] org.</p>
</div>
</div>
</div>
</section>
	<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://r-posts.com/stencila-an-office-suite-for-reproducible-research/"> R-posts.com</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/4dRtCjiAWE8" height="1"></a></div>