Deal with inexplicable snakemake failure.

labels
junos 2022-01-07 18:11:38 +01:00
parent 2fb068cb8b
commit b17a7eff1a
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ update_catalogue_file <- snakemake@params[["update_catalogue_file"]]
scrape_missing_genres <- snakemake@params[["scrape_missing_genres"]]
apps_with_genre <- data.frame(matrix(ncol=length(colnames(apps)) + 1,nrow=0, dimnames=list(NULL, c(colnames(apps), "genre"))))
if (length(package_names_hashed) == 0) {package_names_hashed <- FALSE}
if(nrow(apps) > 0){
if(catalogue_source == "GOOGLE"){
apps_with_genre <- apps %>% mutate(genre = NA_character_)