Skip to content

Commit f427619

Browse files
authored
Merge pull request #125 from terrytangyuan/version-check
Update version check for R package
2 parents 8b7a7d3 + ecedb99 commit f427619

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R-package/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Description: Interface to 'TensorFlow IO', Datasets and filesystem extensions ma
1717
License: Apache License 2.0
1818
URL: https://github.com/tensorflow/io
1919
BugReports: https://github.com/tensorflow/io/issues
20-
SystemRequirements: TensorFlow >= 1.4 (https://www.tensorflow.org/)
20+
SystemRequirements: TensorFlow >= 1.13.0 (https://www.tensorflow.org/) and TensorFlow IO >= 0.4.0 (https://github.com/tensorflow/io)
2121
Encoding: UTF-8
2222
LazyData: true
2323
Depends:

R-package/R/package.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ tfio_module_not_available_message <- function() {
4949

5050
check_tensorflow_version <- function(displayed_warning) {
5151
current_tf_ver <- tf_version()
52-
required_ver <- "1.12.0"
53-
if (current_tf_ver != required_ver) {
52+
min_ver <- "1.13.0"
53+
if (current_tf_ver < min_ver) {
5454
if (!displayed_warning) {
5555
packageStartupMessage(
56-
"tfio requires TensorFlow version == ", required_ver, " ",
56+
"tfio requires TensorFlow version >= ", min_ver, " ",
5757
"(you are currently running version ", current_tf_ver, ").\n")
5858
displayed_warning <<- TRUE
5959
}

0 commit comments

Comments
 (0)