Here are a few reminders and some things to be on the look-out for in Chapter 5.
UPDATE: The gutenbergr
package has been updated so that the gutenberg_download()
function searches for an active mirror site. This means that you won’t need to manually define your mirror
any longer.
NEW PACKAGES: The following packages are new this week and will need to be installed prior to use: tm
, topicmodels
, quanteda
, Matrix
, (see ERRORS bullet below)tm.plugin.webmining
(you may need to install Java)
WARNING: When creating acq_tokens
you may get a warning message about Outer names only being allowed for unnamed scalar atomic inputs – don’t worry about this.
NEW CODE: Sometimes it isn’t worth loading an entire package because we only need its functionality once or twice. In these cases, we can use the syntax package_name::function_name()
to use the function function_name()
from the package package_name
without first loading package_name
into our R Session.
ERRORS: When Google and Yahoo terminated the old versions of their finance pages in 2018, this broke the corresponding functions in the tm.plugin.webmining
package. Unfortunately it looks like that package is no longer actively maintained, so the code in this section of the book won’t run.
That’s all for now. Post questions you have in Slack and/or bring them with you to our Thursday live meeting.