Skip to content

Commit fd58630

Browse files
committed
add RStudio tips
1 parent adfeb4e commit fd58630

File tree

4 files changed

+39
-10
lines changed

4 files changed

+39
-10
lines changed

blogs/posts/rstudio_and positron_ide_tips.qmd

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@ RStudio and Positron are IDEs useful for running R programmign language code. In
88

99
# RStudio IDE tips
1010

11-
* For a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.
12-
* Tip 2
13-
* Tip 3
14-
* Tip 4
11+
* **New Project for a new analysis**: For a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.
12+
* **Adopt a consistent folder structure**: Organise your project directory with subfolders for clarity, such as `data/` (with `raw/` and `processed/` subdirectories), `scripts/`, and `output/` (for figures and reports).
13+
* **Create dynamic reports rather than static**: One can use R markdown or a quarto file to create a dynamic output document, slides, or website. This allows you to integrate code and narrative text, making it easier to update and reproduce your analysis.
14+
* **Integrate Version Control using Git or GitHub**: RStudio has a built in **Terminal** as well as **Git** pane to help you manage version control. This allows you to track code or text changes, collaborate with others on shared and/or open source projects, and maintain a history of your project.
15+
* **Spell Check feature**: Use the spell check feature from `Edit -> Check Spelling...` to ensure your code comments and documentation are free from typos.
16+
* **History**: Go through the `History` tab to review previously run commands. You can easily re-run or copy commands from your history to save time.
17+
* **Environment**: Use this section to have a cursory look at the active variables and a glimpse of the values stored in them.
18+
* **Four panels in RStudio**: Familiarise yourself with the four-panel layout of RStudio (Source, Console, Environment/History, Files/Plots/Packages/Help). This layout helps you efficiently manage your coding, output, and resources.
19+
* **Running code in chunks**: In R markdown and quarto files, use the features to run selected lines, current chunk, next chunk, all the chunks, all the chunks above, and all the chunks below to efficiently test and run your code.
20+
21+
# Positron IDE tips
22+
23+
* **Tip 1**:
24+
* **Tip 2**:
25+
* **Tip 3**:
26+
* **Tip 4**:
27+
* **Tip 5**:

docs/blogs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ <h5 class="no-anchor card-title listing-title">
240240
</div>
241241
</div></a>
242242
</div>
243-
<div class="g-col-1" data-index="1" data-categories="UlN0dWRpbyUyQ1Bvc2l0cm9uJTJDQmVnaW5uZXI=" data-listing-file-modified-sort="1763617819691" data-listing-reading-time-sort="1" data-listing-word-count-sort="73">
243+
<div class="g-col-1" data-index="1" data-categories="UlN0dWRpbyUyQ1Bvc2l0cm9uJTJDQmVnaW5uZXI=" data-listing-file-modified-sort="1763625394036" data-listing-reading-time-sort="2" data-listing-word-count-sort="344">
244244
<a href="../blogs/posts/rstudio_and positron_ide_tips.html" class="quarto-grid-link">
245245
<div class="quarto-grid-item card h-100 card-left">
246246
<div class="listing-item-img-placeholder card-img-top" style="height: 150px;">&nbsp;</div>

docs/blogs/posts/rstudio_and positron_ide_tips.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ <h2 id="toc-title">On this page</h2>
137137

138138
<ul>
139139
<li><a href="#rstudio-ide-tips" id="toc-rstudio-ide-tips" class="nav-link active" data-scroll-target="#rstudio-ide-tips">RStudio IDE tips</a></li>
140+
<li><a href="#positron-ide-tips" id="toc-positron-ide-tips" class="nav-link" data-scroll-target="#positron-ide-tips">Positron IDE tips</a></li>
140141
</ul>
141142
</nav>
142143
</div>
@@ -177,10 +178,25 @@ <h1 class="title">RStudio and Positron IDE Tips to Make Your Workflows Efficient
177178
<section id="rstudio-ide-tips" class="level1">
178179
<h1>RStudio IDE tips</h1>
179180
<ul>
180-
<li>For a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.</li>
181-
<li>Tip 2</li>
182-
<li>Tip 3</li>
183-
<li>Tip 4</li>
181+
<li><strong>New Project for a new analysis</strong>: For a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.</li>
182+
<li><strong>Adopt a consistent folder structure</strong>: Organise your project directory with subfolders for clarity, such as <code>data/</code> (with <code>raw/</code> and <code>processed/</code> subdirectories), <code>scripts/</code>, and <code>output/</code> (for figures and reports).</li>
183+
<li><strong>Create dynamic reports rather than static</strong>: One can use R markdown or a quarto file to create a dynamic output document, slides, or website. This allows you to integrate code and narrative text, making it easier to update and reproduce your analysis.</li>
184+
<li><strong>Integrate Version Control using Git or GitHub</strong>: RStudio has a built in <strong>Terminal</strong> as well as <strong>Git</strong> pane to help you manage version control. This allows you to track code or text changes, collaborate with others on shared and/or open source projects, and maintain a history of your project.</li>
185+
<li><strong>Spell Check feature</strong>: Use the spell check feature from <code>Edit -&gt; Check Spelling...</code> to ensure your code comments and documentation are free from typos.</li>
186+
<li><strong>History</strong>: Go through the <code>History</code> tab to review previously run commands. You can easily re-run or copy commands from your history to save time.</li>
187+
<li><strong>Environment</strong>: Use this section to have a cursory look at the active variables and a glimpse of the values stored in them.</li>
188+
<li><strong>Four panels in RStudio</strong>: Familiarise yourself with the four-panel layout of RStudio (Source, Console, Environment/History, Files/Plots/Packages/Help). This layout helps you efficiently manage your coding, output, and resources.</li>
189+
<li><strong>Running code in chunks</strong>: In R markdown and quarto files, use the features to run selected lines, current chunk, next chunk, all the chunks, all the chunks above, and all the chunks below to efficiently test and run your code.</li>
190+
</ul>
191+
</section>
192+
<section id="positron-ide-tips" class="level1">
193+
<h1>Positron IDE tips</h1>
194+
<ul>
195+
<li><strong>Tip 1</strong>:</li>
196+
<li><strong>Tip 2</strong>:</li>
197+
<li><strong>Tip 3</strong>:</li>
198+
<li><strong>Tip 4</strong>:</li>
199+
<li><strong>Tip 5</strong>:</li>
184200
</ul>
185201

186202

docs/search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@
116116
"href": "blogs/posts/rstudio_and positron_ide_tips.html",
117117
"title": "RStudio and Positron IDE Tips to Make Your Workflows Efficient!",
118118
"section": "",
119-
"text": "RStudio and Positron are IDEs useful for running R programmign language code. In this blog, we will explore some tips and tricks to make your workflow more efficient while using these IDEs.\n\nRStudio IDE tips\n\nFor a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.\nTip 2\nTip 3\nTip 4"
119+
"text": "RStudio and Positron are IDEs useful for running R programmign language code. In this blog, we will explore some tips and tricks to make your workflow more efficient while using these IDEs.\n\nRStudio IDE tips\n\nNew Project for a new analysis: For a new code, use New Project and then create the necesssary files (.R, .Rmd, .qmd, etc.) inside the New Project. This helps is keeping the r environment including the dependencies spearate for separate projects.\nAdopt a consistent folder structure: Organise your project directory with subfolders for clarity, such as data/ (with raw/ and processed/ subdirectories), scripts/, and output/ (for figures and reports).\nCreate dynamic reports rather than static: One can use R markdown or a quarto file to create a dynamic output document, slides, or website. This allows you to integrate code and narrative text, making it easier to update and reproduce your analysis.\nIntegrate Version Control using Git or GitHub: RStudio has a built in Terminal as well as Git pane to help you manage version control. This allows you to track code or text changes, collaborate with others on shared and/or open source projects, and maintain a history of your project.\nSpell Check feature: Use the spell check feature from Edit -&gt; Check Spelling... to ensure your code comments and documentation are free from typos.\nHistory: Go through the History tab to review previously run commands. You can easily re-run or copy commands from your history to save time.\nEnvironment: Use this section to have a cursory look at the active variables and a glimpse of the values stored in them.\nFour panels in RStudio: Familiarise yourself with the four-panel layout of RStudio (Source, Console, Environment/History, Files/Plots/Packages/Help). This layout helps you efficiently manage your coding, output, and resources.\nRunning code in chunks: In R markdown and quarto files, use the features to run selected lines, current chunk, next chunk, all the chunks, all the chunks above, and all the chunks below to efficiently test and run your code.\n\n\n\nPositron IDE tips\n\nTip 1:\nTip 2:\nTip 3:\nTip 4:\nTip 5:"
120120
}
121121
]

0 commit comments

Comments
 (0)