I am trying to read a csv file using read_csv() of R.
library(readr)
data <- read_csv("data/tmp.csv")
tmp.csv is given below.
"A", "B", "C", "D", "E", "F", "G", "H", "I"
1,5,2015-07-31,5263,555,1,1,"0","1"
2,5,2015-07-31,6064,625,1,1,"0","1"
3,5,2015-07-31,8314,821,1,1,"0","1"
4,5,2015-07-31,13995,1498,1,1,"0","1"
5,5,2015-07-31,4822,559,1,1,"0","1"
6,5,2015-07-31,5651,589,1,1,"0","1"
7,5,2015-07-31,15344,1414,1,1,"0","1"
8,5,2015-07-31,8492,833,1,1,"0","1"
9,5,2015-07-31,8565,687,1,1,"0","1"
But it produces the following error.
Error in match(x, table, nomatch = 0L) :
could not find function "OlsonNames"
How can I solve this error? I have googled using the error, but haven't found any relevant solution.
After some digging, the same error occurs with:
> locale()
Error in match(x, table, nomatch = 0L) :
could not find function "OlsonNames"
It seems like an error relating to https://stat.ethz.ch/R-manual/R-devel/library/base/html/timezones.html
Restarting the R session doesn't work.
How should I resolve the error? Do I need to install some packages? If so, which?