diff --git a/guix/scripts/import/cran.scm b/guix/scripts/import/cran.scm index bc266ad9da..33944c4a3f 100644 --- a/guix/scripts/import/cran.scm +++ b/guix/scripts/import/cran.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Eric Bavier -;;; Copyright © 2015, 2017, 2019 Ricardo Wurmus +;;; Copyright © 2015, 2017, 2019, 2020 Ricardo Wurmus ;;; Copyright © 2020 Martin Becze ;;; ;;; This file is part of GNU Guix. @@ -98,8 +98,9 @@ Import and convert the CRAN package for PACKAGE-NAME.\n")) (if (assoc-ref opts 'recursive) ;; Recursive import (map package->definition - (cran-recursive-import package-name - #:repo (or (assoc-ref opts 'repo) 'cran))) + (filter identity + (cran-recursive-import package-name + #:repo (or (assoc-ref opts 'repo) 'cran)))) ;; Single import (let ((sexp (cran->guix-package package-name #:repo (or (assoc-ref opts 'repo) 'cran))))