From 8c4941b879670ec9dc3608b77637f44fddf32178 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Fri, 28 Jul 2023 09:34:29 +0100 Subject: [PATCH] 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 Signed-off-by: Nic Crane --- 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 8b353fd09bb5a..90ea868ea3491 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 d941da4baa61f..b554770e40c9b 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)