Skip to content

Commit

Permalink
deploy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
novoselt committed Aug 15, 2024
1 parent 4f2b09c commit 155f1a5
Show file tree
Hide file tree
Showing 23 changed files with 508 additions and 103 deletions.
258 changes: 258 additions & 0 deletions R_IDE.html
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 &mdash; 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>&#169; 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>
61 changes: 61 additions & 0 deletions _sources/R_IDE.rst.txt
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`.

11 changes: 11 additions & 0 deletions _sources/backups.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ Snapshots
All files in every project are snapshotted every couple of minutes.
You can browse your snapshots by clicking the **"Backups"** link at the upper right of the :doc:`explorer` file listing.

.. raw:: html

<center><iframe
width="640" height="360"
src="https://www.youtube.com/embed/VPp-AleMUXg?si=65Q0vbU8K4A2AUF5"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe></center>

*Snapshot storage does not count against your disk space quota.* We provide all snapshot space for no additional charge.


Expand Down
11 changes: 11 additions & 0 deletions _sources/howto/pluto.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ Here are instructions for running a Pluto notebook on CoCalc.
Launch a Pluto Notebook
***********************

.. raw:: html

<center><iframe
width="640" height="360"
src="https://www.youtube.com/embed/WMu2cCT6XVI?si=2i0Jasz4iDmq_f3k"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe></center>

1. Click :doc:`../plus-new` to open the new file dialog.

2. Click "Pluto server...".
Expand Down
22 changes: 22 additions & 0 deletions _sources/latex-faq.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,17 @@ This is frequently used as part of `reproducible research <https://en.wikipedia.
SageTeX
^^^^^^^^^^

.. raw:: html

<center><iframe
width="640" height="360"
src="https://www.youtube.com/embed/K-5CqXwRHgA?si=lX5bNDCtcUEoESFF"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe></center>

Any ``.tex`` file loading the ``sagetex`` package is automatically processed via [[SageMath]].
First, Sage code is extracted into a ``.sage`` file, then ``sage ...`` evaluates that file, and finally the LaTeX engine creates the PDF document by replacing all snippets of Sage code by their evaluated result.
CoCalc handles all details for you!
Expand All @@ -348,6 +359,17 @@ Besides that, the `SageMath Documentation <http://doc.sagemath.org/html/en/>`_ c
PythonTeX
^^^^^^^^^^^^^^

.. raw:: html

<center><iframe
width="640" height="360"
src="https://www.youtube.com/embed/sN--nWPyFuk?si=4y13tJQvRJsPrn26"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe></center>

`PythonTeX <https://ctan.org/pkg/pythontex>`_ follows the same spirit as SageTeX.
Embedded Python commands and blocks of code are extracted into a ``.py`` file,
Python 3 evaluates them,
Expand Down
Loading

0 comments on commit 155f1a5

Please sign in to comment.