Eric L. answered 10/12/19
Experienced programmer and familiar with most branches of math
That is close!
What you'll want to specify when using "lapply()" is "character.only = TRUE", like so
Although this does work, it doesn't mean you should do this always.
I prefer to more explicitly so it is easier to read and understand. Plus I can put comments about those packages.
Side note, I would also use "library()" rather than "require". I also switched to using "require" for a little bit, but then I read this blog post https://yihui.name/en/2014/07/library-vs-require/
Basically, "require" will only attempt to load the package before going on. If it doesn't exist, it'll continue running code. This will not be helpful downstream in your code because then R will say some function doesn't exist, when in reality, it is because a package wasn't loaded. Using "library()" would have caught this.