Warning: Undefined variable $num in /home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php on line 126
Warning: Undefined variable $posts_num in /home/shroutdo/public_html/courses/wp-content/plugins/single-categories/single_categories.php on line 127
Hello all,
We can certainly run each package at the start of each notebook, but if you are comfortable, you can also use the following code:
# List your packages here (this checks to see if tidyRSS and stringr are installed.
packages <- c("tidyRSS", "stringr")
# Run this without making changes
package.check <- lapply(packages, FUN = function(x) {
if (!require(x, character.only = TRUE)) {
install.packages(x, dependencies = TRUE)
library(x, character.only = TRUE)
}
})