Several permutations of your proposed functions do work — but only if you specify the character.only
argument to be TRUE
. Quick example:
lapply(x, require, character.only = TRUE)
More Related Contents:
- Elegant way to check for missing packages and install them?
- Painless way to install a new version of R?
- Where does R store packages?
- Windows 7, update.packages problem: “unable to move temporary installation”?
- readRDS(file) in R
- Check for installed packages before running install.packages() [duplicate]
- Rtools is not being detected from RStudio
- How to change formats of multiple variables in one dataset?
- Filtering a data frame on a vector [duplicate]
- Programming with dplyr using string as input
- Select subset of columns in data.table R [duplicate]
- Addressing x and y in aes by variable number
- How to one hot encode several categorical variables in R
- Convert letters to numbers
- How can I load an object into a variable name that I specify from an R data file?
- Export a graph to .eps file with R
- Delete columns/rows with more than x% missing
- Convert NA into a factor level
- Merge Panel data to get balanced panel data
- Repeat vector when its length is not a multiple of desired total length
- R fuzzy string match to return specific column based on matched string
- modifying ggplot objects after creation
- Why (or when) is Rscript (or littler) better than R CMD BATCH?
- How do I tell the R interpreter how to use the proxy server?
- Replace -inf, NaN and NA values with zero in a dataset in R
- Specifying formula in R with glm without explicit declaration of each covariate
- Equivalent to rowMeans() for min()
- Messy plot when plotting predictions of a polynomial regression using lm() in R
- How to set legend alpha with ggplot2
- Override column types when importing data using readr::read_csv() when there are many columns