{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/readr/issues/428","repository_url":"https://api.github.com/repos/hadley/readr","labels_url":"https://api.github.com/repos/hadley/readr/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/hadley/readr/issues/428/comments","events_url":"https://api.github.com/repos/hadley/readr/issues/428/events","html_url":"https://github.com/hadley/readr/issues/428","id":159324741,"number":428,"title":"restarting interrupted promise evaluation error","user":{"login":"rfarouni","id":9895004,"avatar_url":"https://avatars.githubusercontent.com/u/9895004?v=3","gravatar_id":"","url":"https://api.github.com/users/rfarouni","html_url":"https://github.com/rfarouni","followers_url":"https://api.github.com/users/rfarouni/followers","following_url":"https://api.github.com/users/rfarouni/following{/other_user}","gists_url":"https://api.github.com/users/rfarouni/gists{/gist_id}","starred_url":"https://api.github.com/users/rfarouni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfarouni/subscriptions","organizations_url":"https://api.github.com/users/rfarouni/orgs","repos_url":"https://api.github.com/users/rfarouni/repos","events_url":"https://api.github.com/users/rfarouni/events{/privacy}","received_events_url":"https://api.github.com/users/rfarouni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-09T04:11:11Z","updated_at":"2016-07-06T18:11:32Z","closed_at":"2016-07-06T18:11:32Z","body":"Hi,\r\n\r\n I keep getting this error when I try to read an csv file using the read_csv() function called within a R package that I am making. The same code runs fine when I run it as a script outside the package. Also when I use the read.csv() instead, I get no such error. When I debugged the function, it seems to me that the problem might be connected to some kind of \"promise already under evaluation error\". This [discussion](https://stat.ethz.ch/pipermail/r-help/2008-November/180902.html) seems to hint at the solution but I am not sure how to go about solving it \r\n\r\nThe code\r\n```{R}\r\n  csv2 <- \"/home/rick/Documents/AltreDataRepo/DNaseEncode.csv\"\r\n  csvfile <- read_csv(\r\n    csv2,\r\n    col_types = cols_only(\r\n      datapath  = col_character(),\r\n      bamfiles  = col_character(),\r\n      peakfiles = col_character(),\r\n      sample    = col_character(),\r\n      replicate = col_character()\r\n    )\r\n  )\r\n```\r\nThe error\r\n```{R}\r\n\r\nError in date_names_lang(date_names) : \r\n  cannot open file '~/R/x86_64-pc-linux-gnu-library/3.3/readr/R/sysdata.rdb': No such file or directory\r\nIn addition: Warning message:\r\nIn date_names_lang(date_names) : restarting interrupted promise evaluation\r\n\r\nStack trace (innermost first):\r\n    87: date_names_lang\r\n    86: locale\r\n    85: default_locale\r\n    84: guess_header_\r\n    83: guess_header\r\n    82: col_spec_standardise\r\n    81: read_delimited\r\n    80: read_csv\r\n```\r\nSession info\r\n```{R}\r\nR version 3.3.0 (2016-05-03)\r\nPlatform: x86_64-pc-linux-gnu (64-bit)\r\nRunning under: Ubuntu 15.10\r\n\r\nlocale:\r\n [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8   \r\n [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            \r\n[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       \r\n\r\nattached base packages:\r\n[1] stats4    parallel  stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n [1] readr_0.2.2          shinyFiles_0.6.0     rmarkdown_0.9.6      shinydashboard_0.5.1 shiny_0.13.2         ALTRE_0.99.0         GenomicRanges_1.24.1\r\n [8] GenomeInfoDb_1.8.1   IRanges_2.6.0        S4Vectors_0.10.1     BiocGenerics_0.18.0 \r\n\r\nloaded via a namespace (and not attached):\r\n [1] Biobase_2.32.0                httr_1.1.0                    tidyr_0.4.1                   jsonlite_0.9.21               viridisLite_0.1.3            \r\n [6] AnnotationHub_2.4.2           splines_3.3.0                 Formula_1.2-1                 assertthat_0.1                interactiveDisplayBase_1.10.3\r\n[11] TTR_0.23-1                    latticeExtra_0.6-28           BSgenome_1.40.0               Rsamtools_1.24.0              yaml_2.1.13                  \r\n[16] RSQLite_1.0.0                 lattice_0.20-33               biovizBase_1.20.0             rlist_0.4.6.1                 chron_2.3-47                 \r\n[21] digest_0.6.9                  RColorBrewer_1.1-2            XVector_0.12.0                colorspace_1.2-6              htmltools_0.3.5              \r\n[26] httpuv_1.3.3                  Matrix_1.2-6                  plyr_1.8.4                    XML_3.98-1.4                  biomaRt_2.28.0               \r\n[31] zlibbioc_1.18.0               purrr_0.2.1                   xtable_1.8-2                  d3vennR_0.1                   scales_0.4.0                 \r\n[36] BiocParallel_1.6.2            EnsDb.Hsapiens.v75_0.99.12    ggplot2_2.1.0                 SummarizedExperiment_1.2.2    GenomicFeatures_1.24.2       \r\n[41] nnet_7.3-12                   Gviz_1.16.1                   quantmod_0.4-5                RJSONIO_1.3-0                 survival_2.39-4              \r\n[46] magrittr_1.5                  mime_0.4                      xts_0.9-7                     foreign_0.8-66                BiocInstaller_1.22.2         \r\n[51] rsconnect_0.4.3               tools_3.3.0                   data.table_1.9.6              highcharter_0.3.0             matrixStats_0.50.2           \r\n[56] stringr_1.0.0                 munsell_0.4.3                 cluster_2.0.4                 AnnotationDbi_1.34.3          ensembldb_1.4.6              \r\n[61] Biostrings_2.40.2             grid_3.3.0                    RCurl_1.95-4.8                dichromat_2.0-0               VariantAnnotation_1.18.1     \r\n[66] htmlwidgets_0.6               igraph_1.0.1                  bitops_1.0-6                  gtable_0.2.0                  DBI_0.4-1                    \r\n[71] markdown_0.7.7                R6_2.1.2                      gridExtra_2.2.1               GenomicAlignments_1.8.1       zoo_1.7-13                   \r\n[76] dplyr_0.4.3                   rtracklayer_1.32.0            Hmisc_3.17-4                  stringi_1.1.1                 Rcpp_0.12.5                  \r\n[81] rpart_4.1-10                  acepack_1.3-3.3    \r\n```"},"comment":{"url":"https://api.github.com/repos/hadley/readr/issues/comments/230857439","html_url":"https://github.com/hadley/readr/issues/428#issuecomment-230857439","issue_url":"https://api.github.com/repos/hadley/readr/issues/428","id":230857439,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T18:11:32Z","updated_at":"2016-07-06T18:11:32Z","body":"We've got no idea what might cause this. I'd recommend restarting R and reinstalling readr."}}
{"actor":{"display_login":"hadley"}}