Fix figure manipulation
This commit is contained in:
@@ -17,8 +17,8 @@ Scripts</h1>
|
||||
<div class="cell">
|
||||
<div class="cell-output-display">
|
||||
|
||||
<figure id="fig-new-project-3"><p><img src="diagrams/rstudio/script.png" alt="RStudio IDE with Editor, Console, and Output highlighted." width="521"/></p>
|
||||
<figcaption>Figure 9.1: Opening the script editor adds a new pane at the top-left of the IDE.</figcaption>
|
||||
<figure id="fig-rstudio-script"><p><img src="diagrams/rstudio/script.png" alt="RStudio IDE with Editor, Console, and Output highlighted." width="521"/></p>
|
||||
<figcaption>Copy these options in your RStudio options to always start your RStudio session with a clean slate.</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
@@ -115,8 +115,8 @@ What is the source of truth?</h2>
|
||||
<div class="cell">
|
||||
<div class="cell-output-display">
|
||||
|
||||
<figure class="figure"><p><img src="diagrams/rstudio/clean-slate.png" alt="RStudio preferences window where the option Restore .RData into workspace at startup is not checked. Also, the option Save workspace to .RData on exit is set to Never. " width="523"/></p>
|
||||
<figcaption class="figure-caption">Figure 9.2: Copy these options in your RStudio options to always start your RStudio session with a clean slate.</figcaption>
|
||||
<figure id="fig-blank-slate"><p><img src="diagrams/rstudio/clean-slate.png" alt="RStudio preferences window where the option Restore .RData into workspace at startup is not checked. Also, the option Save workspace to .RData on exit is set to Never. " width="523"/></p>
|
||||
<figcaption>(a) First click New Directory.</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
@@ -159,22 +159,22 @@ Where does your analysis live?</h2>
|
||||
RStudio projects</h2>
|
||||
<p>Keeping all the files associated with a given project (input data, R scripts, analytical results, and figures) together in one directory is such a wise and common practice that RStudio has built-in support for this via <strong>projects</strong>. Let’s make a project for you to use while you’re working through the rest of this book. Click File > New Project, then follow the steps shown in <a href="#fig-new-project" data-type="xref">#fig-new-project</a>.</p>
|
||||
|
||||
<figure class="figure"><div class="cell-output-display">
|
||||
<figure id="fig-new-project"><div class="cell-output-display">
|
||||
<div class="quarto-figure quarto-figure-center anchored">
|
||||
<figure class="figure"><p><img src="screenshots/rstudio-project-1.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="542"/></p>
|
||||
<figcaption class="figure-caption">(a) First click New Directory.</figcaption>
|
||||
<figure id="fig-new-project-1"><p><img src="screenshots/rstudio-project-1.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="542"/></p>
|
||||
<figcaption>(a) First click New Directory.</figcaption>
|
||||
</figure></div>
|
||||
</div>
|
||||
<div class="cell-output-display">
|
||||
<div class="quarto-figure quarto-figure-center anchored">
|
||||
<figure class="figure"><p><img src="screenshots/rstudio-project-2.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="545"/></p>
|
||||
<figcaption class="figure-caption">(b) Then click New Project.</figcaption>
|
||||
<figure id="fig-new-project-2"><p><img src="screenshots/rstudio-project-2.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="545"/></p>
|
||||
<figcaption>(b) Then click New Project.</figcaption>
|
||||
</figure></div>
|
||||
</div>
|
||||
<div class="cell-output-display">
|
||||
<div class="quarto-figure quarto-figure-center anchored">
|
||||
<figure class="figure"><p><img src="screenshots/rstudio-project-3.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="548"/></p>
|
||||
<figcaption class="figure-caption">(c) Finally, fill in the directory (project) name, choose a good subdirectory for its home and click Create Project.</figcaption>
|
||||
<figure id="fig-new-project-3"><p><img src="screenshots/rstudio-project-3.png" alt="Three screenshots of the New Project menu. In the first screenshot, the Create Project window is shown and New Directory is selected. In the second screenshot, the Project Type window is shown and Empty Project is selected. In the third screenshot, the Create New Project window is shown and the directory name is given as r4ds and the project is being created as subdirectory of the Desktop. " data-ref-parent="fig-new-project" width="548"/></p>
|
||||
<figcaption>Opening the script editor adds a new pane at the top-left of the IDE.</figcaption>
|
||||
</figure></div>
|
||||
</div>
|
||||
<figcaption class="figure-caption">Figure 9.3: Create a new project by following these three steps.</figcaption>
|
||||
|
||||
Reference in New Issue
Block a user