Skip to content

Commit 8c0b533

Browse files
authored
Merge pull request #33 from LibraryCarpentry/fix/consolidate-pseudocode
Consolidate solutions into pseudocode episode
2 parents 8ace359 + db2c666 commit 8c0b533

3 files changed

Lines changed: 6 additions & 123 deletions

File tree

config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ episodes:
6464
- computation_practice.md
6565
- computation_programming.md
6666
- pseudocode.md
67-
- solutions.Rmd
6867

6968

7069
# Information for Learners

episodes/pseudocode.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ One way to do that is to check we have coded the workflow correctly *before* we
140140

141141
Write some pseudocode for that step of the process.
142142

143+
::: solution
144+
To prevent accidental deletion of files, we could introduce a step to check whether or not to delete a file, e.g., by using the remove command `rm` in the Unix shell with an `-i` flag. The `-i` flag forces the system to ask for confirmation on whether or not to delete a file. One can answer either **Y** or **N** to the example below.
145+
146+
![Confirming a remove command](fig/code-in-shell.png){alt="RM command in the shell", width="75%"}
147+
:::
148+
143149
::::::::::::::
144150

145151
::: challenge
@@ -175,10 +181,6 @@ Again, a shell script could be used to automate this work. Given that these task
175181

176182
-------------------
177183

178-
Some potential solutions to these practice coding exercises can be found on the [Solutions](/solutions.html) page.
179-
180-
---------------------------------
181-
182184
#### Learning to program
183185

184186
This lesson should help you prepare to learn to code by understanding the process that coders use to break complex problems down into programmable parts.

episodes/solutions.Rmd

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)