dataverse-R-client

86 views
Skip to first unread message

闫帅

unread,
Nov 6, 2015, 11:27:49 AM11/6/15
to Dataverse Users Community
I got the 404 error ,when i used the R-client to connect the  harvard Dataverse. and i have no idea to solve it.  
are there exist some mistakes with my scirpts?

scripts:
library(dvn)
options(dvn.user = "XXXX")
options(dvn.pwd = "XXXX")
doc <- dvServiceDoc()
meta <- dvBuildMetadata(title="My Study", creator="Doe, John")
study <- dvCreateStudy(doc, meta)
dvAddFile(study, "ittt")
dvReleaseStudy(study)



> library(dvn)
> options(dvn.user = "XXXX")
> options(dvn.pwd = "XXXX")
> doc <- dvServiceDoc()
Operation failed with the following response:
404 Not Found - Harvard Dataverse 

 at  

 <U+00A0>|<U+00A0> Dataverse Project on  

 <U+00A0>|<U+00A0> Code available at  


                     

Copyright <U+00A9> 2015, The President & Fellows of Harvard College
                     

Dataverse Support 
       

> meta <- dvBuildMetadata(title="My Study", creator="Doe, John")
> study <- dvCreateStudy(doc, meta)
Operation failed with the following response:
404 Not Found - Harvard Dataverse 

 at  

 <U+00A0>|<U+00A0> Dataverse Project on  

 <U+00A0>|<U+00A0> Code available at  


                     

Copyright <U+00A9> 2015, The President & Fellows of Harvard College
                     

Dataverse Support 
   
> dvAddFile(study, "ittt")
Error in file(con, "rb") : cannot open the connection
In addition: Warning messages:
1: running command '"zip" -r9X "C:\Users\ADMINI~1\AppData\Local\Temp\RtmpK8K3Kd\file1d64cfc59b2.zip" "ittt" ' had status 127 
2: In file(con, "rb") :
  cannot open file 'C:\Users\ADMINI~1\AppData\Local\Temp\RtmpK8K3Kd\file1d64cfc59b2.zip': No such file or directory
> dvReleaseStudy(study)
Operation failed with the following response:
404 Not Found - Harvard Dataverse 

 at  

 <U+00A0>|<U+00A0> Dataverse Project on  

 <U+00A0>|<U+00A0> Code available at                   

Copyright <U+00A9> 2015, The President & Fellows of Harvard College
                     
Dataverse Support 

Error in UseMethod("xmlAttrs", node) : 
  no applicable method for 'xmlAttrs' applied to an object of class "NULL"

Philip Durbin

unread,
Nov 6, 2015, 12:22:52 PM11/6/15
to dataverse...@googlegroups.com
Sorry, https://dataverse.harvard.edu had been upgraded from DVN 3.x to Dataverse 4 and the "dvn" R package is only compatible with DVN 3.x. (It should work fine with DVN 3.x installations.)

There are plans to develop a new R package (which I believe will be called "dataverse" rather than "dvn") that is compatible with Dataverse 4: https://github.com/ropensci/dvn/issues/23

I hope this helps!

Phil

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/752430b3-cb0c-4de1-b8c4-0bea824ede54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

闫帅

unread,
Nov 8, 2015, 7:34:23 AM11/8/15
to dataverse...@googlegroups.com
Hi Phil,

Thanks for your reply. I got it. Thanks again for your suggestion.

yan

--
You received this message because you are subscribed to a topic in the Google Groups "Dataverse Users Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dataverse-community/0RmQ7ovfhDs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dataverse-commu...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

Philip Durbin

unread,
Nov 8, 2015, 2:17:48 PM11/8/15
to dataverse...@googlegroups.com
Good news! Thomas Leeper just wrote the following at https://github.com/ropensci/dvn/issues/23#issuecomment-154855199

"Just pushed an initial draft successfully. There's no documentation yet and it's untested, but it theoretically works. Will make an effort to document and add tests as soon as I can."

Please check it out at https://github.com/IQSS/dataverse-client-r

Thanks, Thomas!!

Phil


For more options, visit https://groups.google.com/d/optout.

闫帅

unread,
Nov 10, 2015, 3:20:55 AM11/10/15
to dataverse...@googlegroups.com
Hi Phil,

YEAH. I've got it. it's a wonderful work. Thanks for your kindly reminder.

yan

Reply all
Reply to author
Forward
0 new messages