Skip to content

Commit ea7b609

Browse files
committed
feat: Extra R CMD build parameters
1 parent 0bdbaaa commit ea7b609

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ on:
6767
required: false
6868
default: ""
6969
type: string
70+
additional-r-cmd-build-params:
71+
description: Additional flags or parameters to add to R CMD build
72+
required: false
73+
default: ""
74+
type: string
7075
additional-r-cmd-check-params:
7176
description: Additional flags or parameters to add to R CMD check
7277
required: false
@@ -615,7 +620,8 @@ jobs:
615620
export $(tr '\n' ' ' < /tmp/dotenv.env)
616621
}
617622
fi
618-
R CMD build ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
623+
R CMD build ${{ inputs.additional-r-cmd-check-params }} \
624+
${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
619625
shell: bash
620626

621627
- name: Run R CMD check 🏁
@@ -948,7 +954,7 @@ jobs:
948954
fi
949955
if [ "${{ inputs.disable-package-rebuild-and-upload }}" != "true" ]
950956
then {
951-
R CMD build .
957+
R CMD build ${{ inputs.additional-r-cmd-check-params }} .
952958
} else {
953959
echo "🙅🏼‍♀️ Not rebuilding package for uploads"
954960
}

0 commit comments

Comments
 (0)