Skip to content

Commit 18e77f2

Browse files
committed
Do not use m$run() because mongolite::mongo() does not have it in version 1.5 of the package
1 parent 80ed79a commit 18e77f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/record_sdd.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ record_sdd <- function(tutorial_id, tutorial_version, user_id, event, data) {
5454
url = "mongodb://sdd:sdd@sdd-umons-shard-00-00-umnnw.mongodb.net:27017,sdd-umons-shard-00-01-umnnw.mongodb.net:27017,sdd-umons-shard-00-02-umnnw.mongodb.net:27017/test?ssl=true&replicaSet=sdd-umons-shard-0&authSource=admin"),
5555
silent = TRUE)
5656
if (!inherits(m, "try-error") &&
57-
m$run(command = "{\"ping\": 1}", simplify = TRUE)$ok == 1) {
57+
#m$run(command = "{\"ping\": 1}", simplify = TRUE)$ok == 1) {
58+
m$count() > -1) {
5859
m$insert(entry)
5960
# If there is something in the biodatascience file, inject it also now
6061
if (file.exists(bds_file)) {

0 commit comments

Comments
 (0)