Is there any direct method to fetch data from a Couchbase server in R Studio?

I'm new to this issue with little or no experience with Couchbase, so I might just skip some simple and direct ways to access the data it contains to R Studio. Do you guys know about the solution?

Do I need to handle such requests through some other platforms?

Any advice or suggestions would be much appreciated.

+3


source to share


1 answer


Couchdb has a relaxed http interface, so you can access the database directly. There is a package for R that should make it easier for you:

http://cran.r-project.org/web/packages/RCurl/index.html

Here's an example Uri that can be used to request a couch view:



 /database/_design/designdocname/_view/viewname. 

      

Keep in mind that the couch is rather unusual in that getting data from it requires creating views in the database. You may not be able to complete certain queries without creating views in the admin interface.

But if you're just asking for existing views, the http client is all you need.

+1


source







All Articles