RMongo icon indicating copy to clipboard operation
RMongo copied to clipboard

Updating functionality?

Open DanielWeitzenfeld opened this issue 13 years ago • 7 comments

Am I right that RMongo currently doesn't support document updating?
Do you plan to add that functionality? Thanks!

DanielWeitzenfeld avatar Jun 07 '11 05:06 DanielWeitzenfeld

That's correct, RMongo doesn't yet support document updating.

I can add it in the future. Any patch submissions are welcomed are well!

tc avatar Jun 07 '11 05:06 tc

I have to say, this is a core feature that would be very useful. In practice it is not reasonable/professional to delete and insert back

RockScience avatar Oct 25 '13 07:10 RockScience

I'll be happy to review and assist with any pull requests

tc avatar Oct 27 '13 04:10 tc

How difficult is it to provide in your package RMongo with a simple wrapper of the java API collection.update() ? As you have already the structure to call the java API, it might be a quick fix? Basically I think people would like to be able to do any of the examples on this page: http://docs.mongodb.org/manual/reference/method/db.collection.update/

I am happy to help but I don't know well enough your package to decide where to start.

RockScience avatar Oct 28 '13 06:10 RockScience

To add this fix, you'll need to add the backing function in the scala code and then the R code.

It should be mostly copy and paste with a few modifications.

To run scala tests: mvn test

To run the R tests(run from parent directory): ``R CMD check RMongo`

On Sun, Oct 27, 2013 at 11:53 PM, RockScience [email protected]:

How difficult is it to provide in your package RMongo with a simple wrapper of the java API collection.update() ? As you have already the structure to call the java API, it might be a quick fix? Basically I think people would like to be able to do any of the examples on this page: http://www.mkyong.com/mongodb/java-mongodb-update-document/

I am happy to help but I don't know well enough your package to decide where to start.

— Reply to this email directly or view it on GitHubhttps://github.com/tc/RMongo/issues/12#issuecomment-27192202 .

Tommy Chheng

tc avatar Oct 28 '13 15:10 tc

Is this still open? Is there any way to update using RMongo? Please update if anyone is working on it.

krdeepakio avatar Oct 07 '15 06:10 krdeepakio

i have not be able to fix it; if you can submit a pull request, we all would appreciate it.

tc avatar Oct 07 '15 15:10 tc