peterson-tim-j / AWAPer

Builds netCDF files of the Bureau of Meteorology Australian Water Availability Project daily national climate grids and extract catchment average data
18 stars 5 forks source link

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

Closed fanweihou closed 4 years ago

fanweihou commented 4 years ago

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')

peterson-tim-j commented 4 years ago

Pls try adding a second ) to the end.

On Thu, 11 Jun 2020, 2:03 pm fanweihou, notifications@github.com wrote:

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')

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peterson-tim-j/AWAPer/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBZO6X46P4FQ46VKAQRTLLRWBJR3ANCNFSM4N3BCRQQ .

conradwasko commented 4 years ago

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