peterson-tim-j/AWAPer

Example 6: issue of loading multiple packages using the command (line 2)

fanweihou opened this issue · 2 comments

Cannot load multiple packages using the command (line 2) in Example 6:

library(c('Evapotranspiration', 'ncdf4', 'R.utils', 'raster', 'chron', 'maptools', 'sp', 'zoo', 'methods', 'xts')

Alternatively write the following:
x = c('Evapotranspiration', 'ncdf4', 'R.utils', 'raster', 'chron', 'maptools', 'sp', 'zoo', 'methods', 'xts')
lapply(x, library, character.only = TRUE)