-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
508 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="./"> | ||
<head> | ||
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>R IDE — CoCalc Manual documentation</title> | ||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" /> | ||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" /> | ||
|
||
|
||
<link rel="shortcut icon" href="_static/favicon-32x32.png"/> | ||
<link rel="canonical" href="https://doc.cocalc.com/R_IDE.html" /> | ||
<!--[if lt IE 9]> | ||
<script src="_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script src="_static/jquery.js?v=5d32c60e"></script> | ||
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="_static/documentation_options.js?v=5929fcd5"></script> | ||
<script src="_static/doctools.js?v=9a2dae69"></script> | ||
<script src="_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="https://cocalc.com/analytics.js"></script> | ||
<script src="_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="genindex.html" /> | ||
<link rel="search" title="Search" href="search.html" /> | ||
<link rel="next" title="Chatrooms" href="chat.html" /> | ||
<link rel="prev" title="Visual Studio Code Server" href="vscode.html" /> | ||
|
||
<link rel="stylesheet" href="_static/custom.css" type="text/css" /> | ||
|
||
|
||
<link rel="canonical" href="https://doc.cocalc.com/R_IDE.html"/> | ||
|
||
|
||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
<a href="index.html" class="icon icon-home"> CoCalc Manual | ||
<img src="_static/_static/cocalc-doc-logo.svg" class="logo" alt="Logo"/> | ||
</a> | ||
|
||
<style> | ||
div.cocalc-header { | ||
padding: 10px; | ||
margin-bottom: 10px; | ||
color: white; | ||
background-color: #4375c1; | ||
font-weight: bold; | ||
text-align: center; | ||
box-shadow: 1px 4px 4px -1px #4375c1; | ||
border-radius: 0 0 3px 3px; | ||
} | ||
div.cocalc-header a { | ||
color: #ddd; | ||
background-color: transparent; | ||
text-decoration: none; | ||
} | ||
</style> | ||
|
||
<div class="cocalc-header"> | ||
We provide the best real-time collaborative environment for <a href="https://cocalc.com/features/jupyter-notebook">Jupyter</a>, <a href="https://cocalc.com/features/latex-editor">LaTeX</a>, and <a href="https://cocalc.com/features/jupyter-notebook">SageMath</a>! | ||
</div> | ||
|
||
|
||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
|
||
|
||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<ul class="current"> | ||
<li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="alternativeto/index.html">Alternatives</a></li> | ||
<li class="toctree-l1 current"><a class="reference internal" href="working_with.html">Working With</a><ul class="current"> | ||
<li class="toctree-l2"><a class="reference internal" href="ai.html">AI Assistant</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="frame-editor.html">Frame Editor</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="jupyter.html">Jupyter Notebooks</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="terminal.html">Linux Terminal</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="latex.html">LaTeX Editor</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="vscode.html">Visual Studio Code Server</a></li> | ||
<li class="toctree-l2 current"><a class="current reference internal" href="#">R IDE</a><ul> | ||
<li class="toctree-l3"><a class="reference internal" href="#collaborative-x11-application">Collaborative X11 Application</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="#notebook-server">Notebook Server</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="#compute-server">Compute Server</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="#other-ways">Other Ways</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l2"><a class="reference internal" href="chat.html">Chatrooms</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="x11.html">X11 Graphical Desktop</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="sagews.html">Sage Worksheets</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="markdown.html">Markdown</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="rich-text.html">Rich Text Editing</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="csv-viewer.html">CSV Viewer</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="whiteboard.html">Whiteboard</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="tasks.html">Task Lists</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="timers.html">Stopwatches and Timers</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="slides.html">Slides</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="snippets.html">Snippets</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l1"><a class="reference internal" href="platform.html">Platform</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="user_interface.html">User Interface</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="service_options.html">Service Options</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="howto/index.html">How-tos</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="teaching-instructors.html">Instructor Guide</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="teaching-students.html">Student Guide</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="howto/trouble.html">Troubleshooting</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">Appendix</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="references.html">References</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="genindex.html">Index</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="index.html">CoCalc Manual</a> | ||
|
||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
|
||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="contents.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="working_with.html">Working With</a></li> | ||
<li class="breadcrumb-item active">R IDE</li> | ||
<li class="wy-breadcrumbs-aside" style="padding: 0;"> | ||
<a | ||
class="fa fa-question-circle" | ||
href="https://cocalc.com/support/new?type=question&subject=A%20question%20about%20CoCalc%20...&body=&title=Ask%20us%20a%20Question!" | ||
style="background-color: #daeefb; color: black; border: 3px solid #2980b9; padding: 2px 5px; border-radius: 4px;" | ||
> | ||
Ask us a Question! | ||
</a> | ||
</li> | ||
|
||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<section id="r-ide"> | ||
<h1>R IDE<a class="headerlink" href="#r-ide" title="Link to this heading"></a></h1> | ||
<div class="admonition-disclaimer admonition"> | ||
<p class="admonition-title">DISCLAIMER</p> | ||
<p>R IDE in CoCalc is the open source edition of RStudio. Posit Software, PBC is in no way associated with CoCalc.</p> | ||
</div> | ||
<p>There are a number of ways to use R in CoCalc.</p> | ||
<section id="collaborative-x11-application"> | ||
<h2>Collaborative X11 Application<a class="headerlink" href="#collaborative-x11-application" title="Link to this heading"></a></h2> | ||
<p>You can create <a class="reference internal" href="x11.html"><span class="doc">X11 Graphical Desktop</span></a>, then click <strong>R IDE</strong> in the application list at the bottom left and wait about 20 seconds. The advantage is real-time collaboration just as with any other X11 application, but the response time may be slow.</p> | ||
</section> | ||
<section id="notebook-server"> | ||
<h2>Notebook Server<a class="headerlink" href="#notebook-server" title="Link to this heading"></a></h2> | ||
<p>Click on the <strong>Servers / Notebook Servers</strong> tab and launch <strong>R IDE</strong> :</p> | ||
<figure class="align-center" id="id1"> | ||
<a class="reference internal image-reference" href="_images/R_IDE_server.png"><img alt="Launching R IDE Server" src="_images/R_IDE_server.png" style="width: 90%;" /></a> | ||
<figcaption> | ||
<p><span class="caption-text">Launching R IDE Server</span><a class="headerlink" href="#id1" title="Link to this image"></a></p> | ||
</figcaption> | ||
</figure> | ||
<center><iframe | ||
width="640" height="360" | ||
src="https://www.youtube.com/embed/Hl9MnHfuwCQ?si=JdM8eQb5T5pBKM1u" | ||
title="YouTube video player" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
allowfullscreen> | ||
</iframe></center></section> | ||
<section id="compute-server"> | ||
<h2>Compute Server<a class="headerlink" href="#compute-server" title="Link to this heading"></a></h2> | ||
<p>If you need more powerful compute resources, use <a class="reference internal" href="compute_server.html"><span class="doc">Compute Servers</span></a> with <strong>R Statistics</strong> image. Here CoCalc’s CEO and Founder William Stein explains how to run it:</p> | ||
<center><iframe width="640" height="360" src="https://www.youtube.com/embed/Owq90O0vLJo?si=Im_EpK-uJwSkJSSW" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></center> | ||
<br/></section> | ||
<section id="other-ways"> | ||
<h2>Other Ways<a class="headerlink" href="#other-ways" title="Link to this heading"></a></h2> | ||
<p>You can also use R in CoCalc via:</p> | ||
<ul class="simple"> | ||
<li><p>Jupyter notebooks with the R kernel. See <a class="reference internal" href="jupyter-start.html#jupyter-kernels"><span class="std std-ref">Jupyter Kernels</span></a>.</p></li> | ||
<li><p>Creating a file ending in .r and running it. You can keep your source file in one pane with a Linux terminal beside it to run the program. See <a class="reference internal" href="terminal.html#terminal-editor-panel"><span class="std std-ref">Terminal Environment in Split Frame with File Editor</span></a>.</p></li> | ||
<li><p><a class="reference internal" href="frame-editor.html#edit-rmd"><span class="std std-ref">R Markdown</span></a> (Rmd file).</p></li> | ||
<li><p><a class="reference internal" href="latex-faq.html#latex-knitr"><span class="std std-ref">Knitr</span></a> (rnw or Rtex file).</p></li> | ||
<li><p>Sage worksheet with R (sagews file and “%r” mode). See Custom “Mode Commands” in Sage Worksheets under <a class="reference internal" href="sagews.html#sagews-wiki"><span class="std std-ref">Sage Worksheets</span></a>.</p></li> | ||
</ul> | ||
</section> | ||
</section> | ||
|
||
|
||
</div> | ||
</div> | ||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> | ||
<a href="vscode.html" class="btn btn-neutral float-left" title="Visual Studio Code Server" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> | ||
<a href="chat.html" class="btn btn-neutral float-right" title="Chatrooms" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> | ||
</div> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2024, Sagemath, Inc., CC BY-4.0 licensed.</p> | ||
</div> | ||
|
||
|
||
|
||
<div role="contentinfo"> | ||
<p> | ||
Please contact us for <a href="https://cocalc.com/support/new?type=question&subject=A%20question%20about%20CoCalc%20...&body=&title=Ask%20us%20a%20Question!">Questions and Feedback</a>, | ||
<a href="https://github.com/sagemathinc/cocalc-doc/">Documentation Repository</a>, | ||
<a href="https://cocalc.com/policies/">Privacy Policy and ToS</a>. | ||
</p> | ||
<p> | ||
<a href="https://github.com/sagemathinc/cocalc-doc/edit/master/source/R_IDE.rst" class="fa fa-github"> Edit this page on GitHub</a> | ||
</p> | ||
<p> | ||
<strong><a href="https://cocalc.com/app">Start CoCalc</a></strong> – start free, upgrade later! | ||
</p> | ||
</div> | ||
|
||
|
||
</footer> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
<a class="github cocalcbanner" href="https://cocalc.com/app?anonymous=true"> | ||
<img alt="Start CoCalc" | ||
class="github" | ||
src="_static/start-cocalc.png" | ||
style="position: fixed; top: 0; right: 0; border: 0; height: 75px; width: 75px"> | ||
</a> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
R IDE | ||
===== | ||
|
||
.. admonition:: DISCLAIMER | ||
|
||
R IDE in CoCalc is the open source edition of RStudio. Posit Software, PBC is in no way associated with CoCalc. | ||
|
||
There are a number of ways to use R in CoCalc. | ||
|
||
|
||
Collaborative X11 Application | ||
----------------------------- | ||
You can create :doc:`x11`, then click **R IDE** in the application list at the bottom left and wait about 20 seconds. The advantage is real-time collaboration just as with any other X11 application, but the response time may be slow. | ||
|
||
|
||
Notebook Server | ||
--------------- | ||
|
||
Click on the **Servers / Notebook Servers** tab and launch **R IDE** : | ||
|
||
.. figure:: img/R_IDE_server.png | ||
:width: 90% | ||
:align: center | ||
:alt: Launching R IDE Server | ||
|
||
Launching R IDE Server | ||
|
||
.. raw:: html | ||
|
||
<center><iframe | ||
width="640" height="360" | ||
src="https://www.youtube.com/embed/Hl9MnHfuwCQ?si=JdM8eQb5T5pBKM1u" | ||
title="YouTube video player" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
allowfullscreen> | ||
</iframe></center> | ||
|
||
|
||
Compute Server | ||
-------------- | ||
|
||
If you need more powerful compute resources, use :doc:`compute_server` with **R Statistics** image. Here CoCalc's CEO and Founder William Stein explains how to run it: | ||
|
||
.. raw:: html | ||
|
||
<center><iframe width="640" height="360" src="https://www.youtube.com/embed/Owq90O0vLJo?si=Im_EpK-uJwSkJSSW" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></center> | ||
<br/> | ||
|
||
|
||
Other Ways | ||
---------- | ||
|
||
You can also use R in CoCalc via: | ||
|
||
- Jupyter notebooks with the R kernel. See :ref:`jupyter-kernels`. | ||
- Creating a file ending in .r and running it. You can keep your source file in one pane with a Linux terminal beside it to run the program. See :ref:`terminal-editor-panel`. | ||
- :ref:`edit-rmd` (Rmd file). | ||
- :ref:`latex-knitr` (rnw or Rtex file). | ||
- Sage worksheet with R (sagews file and "%r" mode). See Custom “Mode Commands” in Sage Worksheets under :ref:`sagews-wiki`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.