Hi Paul,
Have you gotten a chance to try out reprex yet? It's incredibly helpful for troubleshooting code, and, since you're going through DataCamp, I think it would be worth the effort to get comfortable with it – especially since it's much easier for others to read than screenshots!
Right now the best way to install reprex is:
# install.packages("devtools")
devtools::install_github("tidyverse/reprex")
The reprex dos and don'ts are also useful.
If you prefer video (just a guess, since you're doing DataCamp), Jenny Bryan does a great job describing how to use the package in this rOpenSci community call (starts ~10:40).
The accompanying slide deck can be found here
Clipboard trouble?
If you run into problems with access to your clipboard, you can specify an outfile for the reprex, and then copy and paste the contents into the forum.
reprex::reprex(input = "fruits_stringdist.R", outfile = "fruits_stringdist.md")