Skip to content

Commit efa4421

Browse files
authored
feat: Extra R CMD build parameters (#286)
1 parent 0937306 commit efa4421

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
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-build-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-build-params }} .
952958
} else {
953959
echo "🙅🏼‍♀️ Not rebuilding package for uploads"
954960
}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Encoding: UTF-8
2828
Language: en-US
2929
LazyData: true
3030
Roxygen: list(markdown = TRUE)
31-
RoxygenNote: 7.3.2
31+
RoxygenNote: 7.3.3

0 commit comments

Comments
 (0)