This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 8c4941b879 GH-36883: [R] Remove version number which triggers CRAN
warning (#36884)
8c4941b879 is described below
commit 8c4941b879670ec9dc3608b77637f44fddf32178
Author: Nic Crane <[email protected]>
AuthorDate: Fri Jul 28 09:34:29 2023 +0100
GH-36883: [R] Remove version number which triggers CRAN warning (#36884)
### What changes are included in this PR?
Updates package version number to be character not numeric
### Are these changes tested?
No, is configure scripts
### Are there any user-facing changes?
No
* Closes: #36883
Authored-by: Nic Crane <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
---
r/tools/nixlibs.R | 2 +-
r/tools/winlibs.R | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/r/tools/nixlibs.R b/r/tools/nixlibs.R
index 8b353fd09b..90ea868ea3 100644
--- a/r/tools/nixlibs.R
+++ b/r/tools/nixlibs.R
@@ -30,7 +30,7 @@ if (test_mode && is.na(VERSION)) {
dev_version <- package_version(VERSION)[1, 4]
# Small dev versions are added for R-only changes during CRAN submission.
-if (is.na(dev_version) || dev_version < 100) {
+if (is.na(dev_version) || dev_version < "100") {
VERSION <- package_version(VERSION)[1, 1:3]
arrow_repo <- paste0(getOption("arrow.repo",
sprintf("https://apache.jfrog.io/artifactory/arrow/r/%s", VERSION)),
"/libarrow/")
} else {
diff --git a/r/tools/winlibs.R b/r/tools/winlibs.R
index d941da4baa..b554770e40 100644
--- a/r/tools/winlibs.R
+++ b/r/tools/winlibs.R
@@ -53,7 +53,7 @@ if
(!file.exists(sprintf("windows/arrow-%s/include/arrow/api.h", VERSION))) {
dev_version <- package_version(VERSION)[1, 4]
# Small dev versions are added for R-only changes during CRAN submission.
- if (is.na(dev_version) || dev_version < 100) {
+ if (is.na(dev_version) || dev_version < "100") {
VERSION <- package_version(VERSION)[1, 1:3]
get_file(rwinlib, VERSION)