From 0f76ac9779c4d4b2f5ff68ef3e163367c3a1d44f Mon Sep 17 00:00:00 2001 From: njlyon0 Date: Tue, 17 Sep 2024 14:57:42 -0700 Subject: [PATCH] fix: caught/handled typo in 'notebook vs. script' tip --- tip_notebook-vs-script.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tip_notebook-vs-script.qmd b/tip_notebook-vs-script.qmd index 231ae93..2074b08 100644 --- a/tip_notebook-vs-script.qmd +++ b/tip_notebook-vs-script.qmd @@ -10,7 +10,7 @@ When writing code, either scripts (e.g., `.R`, `.py`, `.sh`, etc.) or notebook f ### Strengths -**The greatest strength of scripts is their flexibility**. They allow you to format a file in whatever way is most intuitive to you. Additionally, scripts can be cleaner for iterative operations (i.e., `for` loops) insofar as they need not be concerned with staying within a given code chunk (as would be the case for a notebook file). Developing a new workflow can be swiftly accomplished in a script as some or all of the code in a script can be run by simply selecting the desired lines rather than manually running the desired chunks in a .Rmd file. Finally, scripts can also be a better home for custom functions that can be `source`d by another file (even by a notebook!) for making repeated operations simpler to read. +**The greatest strength of scripts is their flexibility**. They allow you to format a file in whatever way is most intuitive to you. Additionally, scripts can be cleaner for iterative operations (i.e., `for` loops) insofar as they need not be concerned with staying within a given code chunk (as would be the case for a notebook file). Developing a new workflow can be swiftly accomplished in a script as some or all of the code in a script can be run by simply selecting the desired lines rather than manually running the desired chunks in a notebook file. Finally, scripts can also be a better home for custom functions that can be `source`d by another file (even by a notebook!) for making repeated operations simpler to read. ### Potential Weaknesses