Error: `.x` is empty, and no `.init` supplied
Closed this issue · 1 comments
slowkow commented
Hi Miles,
Thanks for the great package! Just like datapasta, this is brilliant. RStudio ought to have these packages installed by default.
Anyway, I ran into an error and I'm not sure how to fix it. Any advice is welcome.
Here is the full contents of temp.R
:
library(shiny)
library(shinysky)
library(ggplot2)
library(scales)
library(viridis)
library(Matrix)
library(egg)
library(parallel)
library(pheatmap)
Here is what happens if I try your function:
> deplearning::depl_check("temp.R")
[deplearning] Starting dependency check.
[deplearning] Scanning file temp.R done.
[deplearning] Found 9 dependencies.
[deplearning] Fetching remote data... CRAN... GitHub... Error: `.x` is empty, and no `.init` supplied
Session info:
> devtools::session_info()
Session info ------------------------------------------------------------------
setting value
version R version 3.4.3 (2017-11-30)
system x86_64, linux-gnu
ui X11
language (EN)
collate en_US.UTF-8
tz Zulu
date 2018-01-26
Packages ----------------------------------------------------------------------
package * version date source
base * 3.4.3 2017-12-01 local
compiler 3.4.3 2017-12-01 local
datasets * 3.4.3 2017-12-01 local
deplearning 0.4.0 2018-01-26 Github (MilesMcBain/deplearning@33e851c)
devtools 1.13.4 2017-11-09 CRAN (R 3.4.3)
digest 0.6.14 2018-01-14 CRAN (R 3.4.3)
graphics * 3.4.3 2017-12-01 local
grDevices * 3.4.3 2017-12-01 local
magrittr 1.5 2014-11-22 CRAN (R 3.4.3)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.3)
methods * 3.4.3 2017-12-01 local
pillar 1.1.0 2018-01-14 CRAN (R 3.4.3)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.3)
rlang 0.1.6 2017-12-21 CRAN (R 3.4.3)
stats * 3.4.3 2017-12-01 local
tibble 1.4.2 2018-01-22 CRAN (R 3.4.3)
tools 3.4.3 2017-12-01 local
utils * 3.4.3 2017-12-01 local
withr 2.1.1 2017-12-19 CRAN (R 3.4.3)
kleinschmidt commented
same here. looks like it's in a call to get_gh_pkgs
with an empty package list:
Enter a frame number, or 0 to exit
1: depl_check("topics.Rmd")
2: depl_check_run(lib_list)
3: get_gh_data(install_candidates[!(install_candidates$package %in% CRAN_df$pa
4: get_gh_pkgs(GH_install_candidates$package)
5: purrr::map(package_list, ~get_gepuro_data(.)) %>% purrr::map(head, 1) %>% p
6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
7: eval(quote(`_fseq`(`_lhs`)), env, env)
8: eval(quote(`_fseq`(`_lhs`)), env, env)
9: `_fseq`(`_lhs`)
10: freduce(value, `_function_list`)
11: withVisible(function_list[[k]](value))
12: function_list[[k]](value)
13: purrr::reduce(., rbind)
14: reduce_impl(.x, .f, ..., .init = .init, .left = TRUE)
15: reduce_init(.x, .init, left = .left)
Selection: 4
Called from: stop("`.x` is empty, and no `.init` supplied", call. = FALSE)
Browse[3]> ls()
[1] "package_list"
Browse[3]> package_list
character(0)