daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Sep 25th, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > mongo.is.connected(mongo)
  2. [1] TRUE
  3.    
  4. > mongo.get.databases(mongo)
  5. [1] "FF"
  6. >
  7.    
  8. > mongo.get.database.collections(mongo , db = "FF")
  9. character(0)
  10. >
  11.    
  12. > use FF
  13. switched to db FF
  14.  
  15. > show collections
  16. kelp_classifications
  17. kelp_groups
  18. kelp_subjects
  19. kelp_users
  20.    
  21. mongo <- mongo.create()
  22. mongo.is.connected(mongo)
  23. # [1] TRUE
  24. db <- "test"
  25. mongo.get.database.collections(mongo, db = db)
  26. [1] "test.test"
RAW Paste Data
Top