We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 008785c commit 96b257eCopy full SHA for 96b257e
1 file changed
R/aaa_base.R
@@ -1,12 +1,18 @@
1
stepcount_base = function() {
2
sc = reticulate::import("stepcount")
3
- stepcount = sc$stepcount
+ stepcount = try({sc$stepcount})
4
+ if (inherits(stepcount, "try-error")) {
5
+ stepcount = reticulate::import("stepcount.stepcount")
6
+ }
7
stepcount
8
}
9
10
11
stepcount_base_noconvert = function() {
12
sc = reticulate::import("stepcount", convert = FALSE)
13
14
15
+ stepcount = reticulate::import("stepcount.stepcount", convert = FALSE)
16
17
18
0 commit comments