Example 6: issue of loading multiple packages using the command (line 2)
fanweihou opened this issue · 2 comments
fanweihou commented
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
Pls try adding a second ) to the end.
…On Thu, 11 Jun 2020, 2:03 pm fanweihou, ***@***.***> 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
<#15>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBZO6X46P4FQ46VKAQRTLLRWBJR3ANCNFSM4N3BCRQQ>
.
conradwasko commented
Alternatively write the following:
x = c('Evapotranspiration', 'ncdf4', 'R.utils', 'raster', 'chron', 'maptools', 'sp', 'zoo', 'methods', 'xts')
lapply(x, library, character.only = TRUE)