@@ -28,20 +28,29 @@ jobs:
28
28
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
29
29
sudo -s eval "$sysreqs"
30
30
31
+ # Change: This step is now more robust. It uses BiocManager to install
32
+ # dependencies before installing the local package.
31
33
- name : Install dependencies
32
- # Change: Add the GH_PAT secret as an environment variable
33
- env :
34
- GITHUB_PAT : ${{ secrets.GH_PAT }}
35
34
run : |
36
35
options(repos = c(CRAN = "https://cloud.r-project.org"))
37
- remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE)
38
- BiocManager::install("rcmdcheck", update = TRUE, ask = FALSE)
36
+ install.packages("remotes")
37
+
38
+ # Get all dependencies from the DESCRIPTION file
39
+ deps <- remotes::dev_package_deps(dependencies = TRUE)
40
+
41
+ # Use the robust BiocManager installer to handle all dependencies
42
+ BiocManager::install(deps$package, update = FALSE, ask = FALSE)
43
+
44
+ # Install the local package itself (dependencies are already installed)
45
+ remotes::install_local(dependencies = FALSE)
46
+
47
+ # Install rcmdcheck separately
48
+ BiocManager::install("rcmdcheck", update = FALSE, ask = FALSE)
39
49
shell : Rscript {0}
40
50
41
51
- name : Check
42
52
env :
43
53
_R_CHECK_CRAN_INCOMING_REMOTE_ : false
44
- GITHUB_PAT : ${{ secrets.GH_PAT }} # Also add here if check step accesses private repos
45
54
run : rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "error", check_dir = "check")
46
55
shell : Rscript {0}
47
56
55
64
tags : latest
56
65
57
66
- name : Build pkgdown
58
- env :
59
- GITHUB_PAT : ${{ secrets.GH_PAT }} # Also add here for pkgdown
60
67
run : |
61
68
PATH=$PATH:$HOME/bin/ Rscript -e 'pkgdown::build_site(".")'
62
69
0 commit comments