Skip to content

Commit 05d357a

Browse files
committed
use backports to restore R<=3.4 compat
1 parent cb8cad2 commit 05d357a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ saved_wt.h5
1717
doc
1818
Meta
1919
.vscode
20+
scratch

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Imports:
3838
methods,
3939
R6,
4040
ellipsis,
41+
backports,
4142
rlang
4243
Suggests:
4344
ggplot2,

R/package.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ keras <- NULL
9696

9797
.onLoad <- function(libname, pkgname) {
9898

99+
backports::import(pkgname, "isFALSE")
100+
99101
# resolve the implementation module (might be keras proper or might be tensorflow)
100102
implementation_module <- resolve_implementation_module()
101103

0 commit comments

Comments
 (0)