Der Versuch, eine csv mit read_csv Funktion zu lesen:Wie installiert man die Olson-Datenbank?
library(readr)
read_csv("myfile.csv")
kehrt Warnung:
Warning message in OlsonNames():
“no Olson database found”
und dann Fehler:
Error: Unknown TZ UTC
Traceback:
1. read_csv("myfile.csv")
2. read_delimited(file, tokenizer, col_names = col_names, col_types = col_types,
. locale = locale, skip = skip, comment = comment, n_max = n_max,
. guess_max = guess_max, progress = progress)
3. col_spec_standardise(data, skip = skip, comment = comment, guess_max = guess_max,
. col_names = col_names, col_types = col_types, tokenizer = tokenizer,
. locale = locale)
4. guess_header(ds_header, tokenizer, locale)
5. guess_header_(datasource, tokenizer, locale)
6. default_locale()
7. locale()
8. check_tz(tz)
9. stop("Unknown TZ ", x, call. = FALSE)
Ich nehme nicht diesen Fehler nicht in R zurück Studio also annehmen Olson Datenbank ist mit R Studio vorinstalliert?
Wie kann ich Olson-Datenbank auf R Jupyter Notebook installieren, damit read_csv
wie erwartet ausgeführt wird?
Update:
Ich empfange gleichen Fehler rufenden OlsonNames()
unabhängig auf Jupyter Notebook. Jupyter Notebook ich ausgeführt habe, ist, Container angegeben bei https://github.com/jupyter/docker-stacks/tree/master/r-notebook
Update 2:
R-Pakete wie von Docker-Datei angegeben:
# R packages
RUN conda install --quiet --yes \
'r-base=3.3.2' \
'r-irkernel=0.7*' \
'r-plyr=1.8*' \
'r-devtools=1.12*' \
'r-tidyverse=1.0*' \
'r-shiny=0.14*' \
'r-rmarkdown=1.2*' \
'r-forecast=7.3*' \
'r-rsqlite=1.1*' \
'r-reshape2=1.4*' \
'r-nycflights13=0.2*' \
'r-caret=6.0*' \
'r-rcurl=1.95*' \
'r-crayon=1.3*' \
'r-randomforest=4.6*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
OS: Ubuntu Core-14.04
R Version:
[email protected]:~$ R -- version
WARNING: unknown option '--'
ARGUMENT 'version' __ignored__
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Previously saved workspace restored]
>
Erhalten Sie das, wenn Sie einfach 'OlsonNames()' ausführen? Dies ist eine Basis-R-Funktion und wenn das fehlschlägt, dann hat das nichts mit 'readr' oder möglicherweise RStudio zu tun (außer RStudio hat die R-Konfiguration kaputt gemacht) – Spacedman
@Spacedman Bitte update sehen, erscheint Ich werde Docker Container aktualisieren müssen Dieses Jupyter Notebook basiert auf. –
Woher kommt 'OlsonNexecutinames()'? Geben Sie auch Versionen von R, Betriebssystem und Paketen an. – Spacedman