More minor page count tweaks & fixes
And re-convert with latest htmlbook
This commit is contained in:
@@ -116,7 +116,12 @@ What is the source of truth?</h2>
|
||||
</ol><p>We collectively use this pattern hundreds of times a week.</p>
|
||||
<div data-type="note"><h1>
|
||||
RStudio server
|
||||
</h1><p>If you’re using RStudio server, your R session is never restarted by default. When you close your RStudio server tab, it might feel like you’re closing R, but the server actually keeps it running in the background. The next time you return, you’ll be in exactly the same place you left. This makes it even more important to regularly restart R so that you’re starting with a refresh slate.</p></div>
|
||||
</h1>
|
||||
|
||||
|
||||
<p>If you’re using RStudio server, your R session is never restarted by default. When you close your RStudio server tab, it might feel like you’re closing R, but the server actually keeps it running in the background. The next time you return, you’ll be in exactly the same place you left. This makes it even more important to regularly restart R so that you’re starting with a refresh slate.</p>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -196,28 +201,21 @@ Relative and absolute paths</h2>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="summary" data-type="sect1">
|
||||
<h1>
|
||||
Summary</h1>
|
||||
<p>In summary, scripts and projects give you a solid workflow that will serve you well in the future:</p>
|
||||
<ul><li>Create one RStudio project for each data analysis project.</li>
|
||||
<li>Save your scripts (with informative names) in the project, edit them, run them in bits or as a whole. Restart R frequently to make sure you’ve captured everything in your scripts.</li>
|
||||
<li>Only ever use relative paths, not absolute paths.</li>
|
||||
</ul><p>Then everything you need is in one place and cleanly separated from all the other projects that you are working on.</p>
|
||||
</section>
|
||||
|
||||
<section id="exercises" data-type="sect1">
|
||||
<section id="workflow-scripts-exercises" data-type="sect1">
|
||||
<h1>
|
||||
Exercises</h1>
|
||||
<ol type="1"><li><p>Go to the RStudio Tips Twitter account, <a href="https://twitter.com/rstudiotips" class="uri">https://twitter.com/rstudiotips</a> and find one tip that looks interesting. Practice using it!</p></li>
|
||||
<li><p>What other common mistakes will RStudio diagnostics report? Read <a href="https://support.posit.co/hc/en-us/articles/205753617-Code-Diagnostics" class="uri">https://support.posit.co/hc/en-us/articles/205753617-Code-Diagnostics</a> to find out.</p></li>
|
||||
</ol></section>
|
||||
|
||||
<section id="summary-1" data-type="sect1">
|
||||
<section id="workflow-scripts-summary" data-type="sect1">
|
||||
<h1>
|
||||
Summary</h1>
|
||||
<p>In this chapter, you’ve learned how to organize your R code in scripts (files) and projects (directories). Much like code style, this may feel like busywork at first. But as you accumulate more code across multiple projects, you’ll learn to appreciate how a little up front organisation can save you a bunch of time down the road.</p>
|
||||
<p>Next up, you’ll learn about how to get help and how to ask good coding questions.</p>
|
||||
<p>In summary, scripts and projects give you a solid workflow that will serve you well in the future:</p>
|
||||
<ul><li>Create one RStudio project for each data analysis project.</li>
|
||||
<li>Save your scripts (with informative names) in the project, edit them, run them in bits or as a whole. Restart R frequently to make sure you’ve captured everything in your scripts.</li>
|
||||
<li>Only ever use relative paths, not absolute paths.</li>
|
||||
</ul><p>Then everything you need is in one place and cleanly separated from all the other projects that you are working on. Next up, you’ll learn about how to get help and how to ask good coding questions.</p>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user