Skip to content

Commit 20d9812

Browse files
committed
try include the repo via env variable
1 parent 1b46280 commit 20d9812

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/R-CMD-check.yaml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,16 @@ jobs:
3939
r-version: ${{ matrix.config.r }}
4040
http-user-agent: ${{ matrix.config.http-user-agent }}
4141

42-
- name: Configure R repositories
42+
- name: Include custom repository
43+
shell: bash
4344
run: |
44-
Rscript -e 'options(repos = c(CRAN = "https://cloud.r-project.org", lexopsdata = "https://JackEdTaylor.github.io/lexopsdata"))'
45+
cat > "$RUNNER_TEMP/repositories" <<'EOF'
46+
## name URL default
47+
CRAN https://cloud.r-project.org true
48+
lexopsdata https://JackEdTaylor.github.io/lexopsdata true
49+
EOF
50+
51+
echo "R_REPOSITORIES=$RUNNER_TEMP/repositories" >> "$GITHUB_ENV"
4552
4653
4754
- uses: r-lib/actions/setup-r-dependencies@v2

0 commit comments

Comments
 (0)