问题
I Keep getting this error whenever I library(swirl)
:
Error in inDL(x, as.logical(local), as.logical(now), ...) : ICU init failed: U_FILE_ACCESS_ERROR Error: package or namespace load failed for ‘swirl’
- I have reinstalled multiple versions of R multiple times.
- Reinstalled
RTools
multiple times - Reset path and registry to what they were a week before when swirl was still working
- Reinstalled Visual Studio and R Studio and still the same effect
Would be awesome to know what more I can do to eliminate this error. I am getting this error in all R environments (R Interactive, Visual Studio, R Studio); It was working properly till a week ago (not sure why it is not working now)
回答1:
Copied packages from a pre-existing working library and pasted in a new R library. Not sure which package was causing this issue - but after pasting these the issue got resolved:
- assertthat
- BH
- bitops
- colorspace
- crayon
- curl
- DBI
- dichromat
- digest
- dplyr
- expsmooth
- fma
- forecast
- fpp
- fracdiff
- ggplot2
- gtable
- httr
- jsonlite
- labeling
- lazyeval
- lmtest
- magrittr
- memoise
- mime
- munsell
- openssl
- plyr
- praise
- quadprog
- R6
- RColorBrewer
- Rcpp
- RcppArmadillo
- RCurl
- reshape
- reshape2
- scales
- stringi
- stringr
- swirl
- testthat
- tibble
- timeDate
- tseries
- yaml
- zoo
回答2:
When I had this issue, loading the Plyr R package resolved it for me.
来源:https://stackoverflow.com/questions/38026485/icu-init-failed-u-file-access-error-when-running-swirl