Skip to content

Commit 1876e2a

Browse files
committed
Update the book
1 parent a2ac7e7 commit 1876e2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/basics.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ <h2><span class="header-section-number">1.6</span> Scripts</h2>
799799

800800
<div class="rmdtip">
801801
<p><strong>Extract function</strong></p>
802-
<p>RStudio comes with a tool that can help you build functions. To use it, highlight the lines of code in your R script that you want to turn into a function. Then click <code>Code &gt; Extract Function</code> in the menu bar. RStudio will ask you for a function name to use and then wrap you code in a <code>function</code> call. It will scan the code for undefined variables and use these as arguments.</p>
802+
<p>RStudio comes with a tool that can help you build functions. To use it, highlight the lines of code in your R script that you want to turn into a function. Then click <code>Code &gt; Extract Function</code> in the menu bar. RStudio will ask you for a function name to use and then wrap your code in a <code>function</code> call. It will scan the code for undefined variables and use these as arguments.</p>
803803
You may want to double-check RStudio’s work. It assumes that your code is correct, so if it does something surprising, you may have a problem in your code.
804804
</div>
805805

0 commit comments

Comments
 (0)