From 0b0d8e22b1d4100544ac3894bc2bd56837882e33 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Tue, 15 Aug 2023 11:07:19 -0300 Subject: [PATCH] fix --- ci/scripts/docs_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/docs_build.sh b/ci/scripts/docs_build.sh index 0b268b1acc..261786b99a 100755 --- a/ci/scripts/docs_build.sh +++ b/ci/scripts/docs_build.sh @@ -36,7 +36,7 @@ main() { # Only build R documentation for installed packages (e.g., so that # Python's documentation build can run without installing the R # packages). Packages are installed in ci/scripts/r_build.sh - if Rscript -e "requireNamespace('$pkg')"; then + if Rscript -e "loadNamespace('$pkg_name')" ; then R -e "pkgdown::build_site_github_pages(pkg = '$pkg', dest_dir = '$source_dir/docs/build/html/r/$pkg_name')" fi done