Skip to content

Instantly share code, notes, and snippets.

@sckott
Created May 1, 2014 03:32
Show Gist options
  • Save sckott/ea80d85409dfa46d43ab to your computer and use it in GitHub Desktop.
Save sckott/ea80d85409dfa46d43ab to your computer and use it in GitHub Desktop.

Using RMendeley

Authenticating with Mendeley

With the OAuth methods in the new RMendeley (dev branch on the GitHub repository), it is now possible to manage one's entire library directly from the R console. After installing (see development version tab) both ROAuth and RMendeley, follow the tutorial below to query Mendeley, manage documents and groups.

library(RMendeley)

Now let's get authenticated with Mendeley. If you have stored your Mendeley keys in your .rprofile, simply run

mc <- mendeley_auth()
## 
##  Mendeley authentication was successful

You can also explicity include your credentials like so:

mc <- mendeley_auth("Your_consumer_key", "Your_secret_key")

Your default browser will automatically launch and take you to a page that looks like this (if you are already logged in):

Once you accept, you should see a PIN (obfuscated below but it's valid for one use only):

Then paste the PIN back in your R console and if successful should show you this:

Paste the PIN from the Mendeley website here: ***********

 Mendeley authentication was successful 
 # You can save this MendeleyCredential object to disk to skip this step in future.
 save(mc, file="~/Credentials/Mendeley_credential.rdata")
 # Next time you wish to use RMendeley, just load this up at the top of your script.
 load('~/Credentials/Mendeley_credential.rdata') 

Profile methods

Who are your contacts on Mendeley?

head(contacts(mc))
##   profile_id           name
## 1    1924501  André Moreira
## 2      29611    Andrew Dyck
## 3     390501    Andrew Hill
## 4    3616241     Anny Chung
## 5      98752 Carl Boettiger
## 6    4951491 Carla Fresquez

Search Mendeley

msearch("bob", , 20)[1:5]
## [[1]]
## [[1]]$uuid
## [1] "125b7ffa-dab0-3caa-b243-984aa3b4369b"
## 
## [[1]]$title
## [1] "Error bars in experimental biology."
## 
## [[1]]$publication_outlet
## [1] "The Journal of cell biology"
## 
## [[1]]$year
## [1] 2007
## 
## [[1]]$mendeley_url
## [1] "http://www.mendeley.com/catalog/error-bars-experimental-biology/"
## 
## [[1]]$doi
## [1] "10.1083/jcb.200611141"
## 
## [[1]]$authors
## [[1]]$authors[[1]]
##  forename   surname 
##   "Geoff" "Cumming" 
## 
## [[1]]$authors[[2]]
## forename  surname 
##  "Fiona" "Fidler" 
## 
## [[1]]$authors[[3]]
##  forename   surname 
## "David L"    "Vaux" 
## 
## 
## 
## [[2]]
## [[2]]$uuid
## [1] "097f27a9-7e53-33a7-8f91-f104e933df78"
## 
## [[2]]$title
## [1] "Now About Bob and Those TV Spots . . ."
## 
## [[2]]$publication_outlet
## [1] "New York Times"
## 
## [[2]]$year
## [1] 1997
## 
## [[2]]$mendeley_url
## [1] "http://www.mendeley.com/catalog/now-about-bob-those-tv-spots/"
## 
## [[2]]$doi
## NULL
## 
## [[2]]$authors
## [[2]]$authors[[1]]
## forename  surname 
##   "Bill"   "Ryan" 
## 
## 
## 
## [[3]]
## [[3]]$uuid
## [1] "9c156c8e-026f-3a67-88b4-c32ae88ba41c"
## 
## [[3]]$title
## [1] "Highlights from San Fransisco_san-francisco-fuji-xpro1-9"
## 
## [[3]]$publication_outlet
## [1] "Bob Shull Photography"
## 
## [[3]]$year
## [1] 2012
## 
## [[3]]$mendeley_url
## [1] "http://www.mendeley.com/research/highlights-san-fransiscosanfranciscofujixpro19/"
## 
## [[3]]$doi
## NULL
## 
## [[3]]$authors
## [[3]]$authors[[1]]
## forename  surname 
##    "Bob"  "Shull" 
## 
## 
## 
## [[4]]
## [[4]]$uuid
## [1] "da060cde-934e-3e49-923a-124a8b486ee6"
## 
## [[4]]$title
## [1] "Anthropology: A monochrome Eden"
## 
## [[4]]$publication_outlet
## [1] "Nature"
## 
## [[4]]$year
## [1] 2013
## 
## [[4]]$mendeley_url
## [1] "http://www.mendeley.com/research/anthropology-monochrome-eden/"
## 
## [[4]]$doi
## [1] "10.1038/496028a"
## 
## [[4]]$authors
## [[4]]$authors[[1]]
##     forename      surname 
##        "Bob" "Bloomfield" 
## 
## 
## 
## [[5]]
## [[5]]$uuid
## [1] "4074d442-4e52-3ddb-9b55-c39b0fe1ff7d"
## 
## [[5]]$title
## [1] "The Deal of the Century: Barclays and Bob Diamond"
## 
## [[5]]$publication_outlet
## [1] "Esquire"
## 
## [[5]]$year
## [1] 2009
## 
## [[5]]$mendeley_url
## [1] "http://www.mendeley.com/research/deal-century-barclays-bob-diamond/"
## 
## [[5]]$doi
## NULL
## 
## [[5]]$authors
## [[5]]$authors[[1]]
##  forename   surname 
##        "" "Esquire"

Who are the most common authors in your Mendeley library?

authorStats(mc)
##   value            name
## 1    43 Jordi Bascompte
## 2    27   Pedro Jordano
## 3    24 Teja Tscharntke
## 4    22    H Hillebrand
## 5    22      A P Moller

Viewing and manipulating your Mendeley folders

Grab a list of your folders

head(Folders(mc))
##          V1
## 1  10703221
## 2 gossypium
## 3       155
## 4         4
## 5        -1
## 6  12773583

What documents are in these folders?

We'll look at the Networks folder.

folderDocs(mc, 19214321)
## $total_results
## [1] 238
## 
## $total_pages
## [1] 12
## 
## $current_page
## [1] 0
## 
## $items_per_page
## [1] 20
## 
## $document_ids
##  [1] "4411296861" "4411293041" "4411288131" "4268246653" "4411296791"
##  [6] "4411308011" "4411321901" "4411297261" "4411288321" "4411297031"
## [11] "4411297011" "4411288121" "4411307421" "4411296891" "4411292841"
## [16] "4411307531" "4411297201" "4411307781" "4411297211" "4411288071"
## 
## $documents
## $documents[[1]]
## $documents[[1]]$id
## [1] "4411296861"
## 
## $documents[[1]]$version
## [1] 1.324e+09
## 
## 
## $documents[[2]]
## $documents[[2]]$id
## [1] "4411293041"
## 
## $documents[[2]]$version
## [1] 1.324e+09
## 
## 
## $documents[[3]]
## $documents[[3]]$id
## [1] "4411288131"
## 
## $documents[[3]]$version
## [1] 1.324e+09
## 
## 
## $documents[[4]]
## $documents[[4]]$id
## [1] "4268246653"
## 
## $documents[[4]]$version
## [1] 1.324e+09
## 
## 
## $documents[[5]]
## $documents[[5]]$id
## [1] "4411296791"
## 
## $documents[[5]]$version
## [1] 1.324e+09
## 
## 
## $documents[[6]]
## $documents[[6]]$id
## [1] "4411308011"
## 
## $documents[[6]]$version
## [1] 1.324e+09
## 
## 
## $documents[[7]]
## $documents[[7]]$id
## [1] "4411321901"
## 
## $documents[[7]]$version
## [1] 1.324e+09
## 
## 
## $documents[[8]]
## $documents[[8]]$id
## [1] "4411297261"
## 
## $documents[[8]]$version
## [1] 1.324e+09
## 
## 
## $documents[[9]]
## $documents[[9]]$id
## [1] "4411288321"
## 
## $documents[[9]]$version
## [1] 1.324e+09
## 
## 
## $documents[[10]]
## $documents[[10]]$id
## [1] "4411297031"
## 
## $documents[[10]]$version
## [1] 1.324e+09
## 
## 
## $documents[[11]]
## $documents[[11]]$id
## [1] "4411297011"
## 
## $documents[[11]]$version
## [1] 1.324e+09
## 
## 
## $documents[[12]]
## $documents[[12]]$id
## [1] "4411288121"
## 
## $documents[[12]]$version
## [1] 1.324e+09
## 
## 
## $documents[[13]]
## $documents[[13]]$id
## [1] "4411307421"
## 
## $documents[[13]]$version
## [1] 1.324e+09
## 
## 
## $documents[[14]]
## $documents[[14]]$id
## [1] "4411296891"
## 
## $documents[[14]]$version
## [1] 1.324e+09
## 
## 
## $documents[[15]]
## $documents[[15]]$id
## [1] "4411292841"
## 
## $documents[[15]]$version
## [1] 1.324e+09
## 
## 
## $documents[[16]]
## $documents[[16]]$id
## [1] "4411307531"
## 
## $documents[[16]]$version
## [1] 1.324e+09
## 
## 
## $documents[[17]]
## $documents[[17]]$id
## [1] "4411297201"
## 
## $documents[[17]]$version
## [1] 1.324e+09
## 
## 
## $documents[[18]]
## $documents[[18]]$id
## [1] "4411307781"
## 
## $documents[[18]]$version
## [1] 1.324e+09
## 
## 
## $documents[[19]]
## $documents[[19]]$id
## [1] "4411297211"
## 
## $documents[[19]]$version
## [1] 1.324e+09
## 
## 
## $documents[[20]]
## $documents[[20]]$id
## [1] "4411288071"
## 
## $documents[[20]]$version
## [1] 1.324e+09
## 
## 
## 
## $folder_id
## [1] "19214321"
## 
## $folder_name
## [1] "MA_poll_seedpred"
## 
## $folder_version
## [1] "2"

Manage folders from your Mendeley account directly from R

createFolder(mc, "Open Science")
## New folder successfully created
## An object of class "MendeleyFolderID"
## [1] "68872241" "-1"       "1"

Some functions such as folderdocs requires a folder ID. In that case you can call getFolderID (although this is called internally in cases where a name is supplied.)

getFolderID(mc, "Open Science")
## Error: argument is of length zero

Add documents to this folder using document IDs

addFolderDoc(mc, "23423", "9454851")

You can also easily remove documents from folders

deleteDocument(mc, "23423", "9454851")

But I don't need Open Science 2 since I already have a folder named Open Science. So I'll go ahead and delete this one.

deleteFolder(mc, "Open Science2")

Next time you sync up your Mendeley client, you'll find these folders everywhere.

Managing Mendeley documents

See your entire library

mendeley_library(mc)
## $total_results
## [1] 2473
## 
## $total_pages
## [1] 124
## 
## $current_page
## [1] 0
## 
## $items_per_page
## [1] 20
## 
## $document_ids
##  [1] "4411296861" "3998756023" "4268247523" "4268248083" "4263530413"
##  [6] "4263531403" "4672354673" "4268243683" "4491485201" "3998757203"
## [11] "3998761553" "3998761323" "3939870751" "4268243483" "4411293041"
## [16] "3833982421" "4268250663" "3998754283" "3998770753" "3998756183"
## 
## $documents
## $documents[[1]]
## $documents[[1]]$id
## [1] "4411296861"
## 
## $documents[[1]]$version
## [1] 1.324e+09
## 
## 
## $documents[[2]]
## $documents[[2]]$id
## [1] "3998756023"
## 
## $documents[[2]]$version
## [1] 1.312e+09
## 
## 
## $documents[[3]]
## $documents[[3]]$id
## [1] "4268247523"
## 
## $documents[[3]]$version
## [1] 1.323e+09
## 
## 
## $documents[[4]]
## $documents[[4]]$id
## [1] "4268248083"
## 
## $documents[[4]]$version
## [1] 1.323e+09
## 
## 
## $documents[[5]]
## $documents[[5]]$id
## [1] "4263530413"
## 
## $documents[[5]]$version
## [1] 1.323e+09
## 
## 
## $documents[[6]]
## $documents[[6]]$id
## [1] "4263531403"
## 
## $documents[[6]]$version
## [1] 1.323e+09
## 
## 
## $documents[[7]]
## $documents[[7]]$id
## [1] "4672354673"
## 
## $documents[[7]]$version
## [1] 1.336e+09
## 
## 
## $documents[[8]]
## $documents[[8]]$id
## [1] "4268243683"
## 
## $documents[[8]]$version
## [1] 1.323e+09
## 
## 
## $documents[[9]]
## $documents[[9]]$id
## [1] "4491485201"
## 
## $documents[[9]]$version
## [1] 1.326e+09
## 
## 
## $documents[[10]]
## $documents[[10]]$id
## [1] "3998757203"
## 
## $documents[[10]]$version
## [1] 1.312e+09
## 
## 
## $documents[[11]]
## $documents[[11]]$id
## [1] "3998761553"
## 
## $documents[[11]]$version
## [1] 1.321e+09
## 
## 
## $documents[[12]]
## $documents[[12]]$id
## [1] "3998761323"
## 
## $documents[[12]]$version
## [1] 1.312e+09
## 
## 
## $documents[[13]]
## $documents[[13]]$id
## [1] "3939870751"
## 
## $documents[[13]]$version
## [1] 1.323e+09
## 
## 
## $documents[[14]]
## $documents[[14]]$id
## [1] "4268243483"
## 
## $documents[[14]]$version
## [1] 1.323e+09
## 
## 
## $documents[[15]]
## $documents[[15]]$id
## [1] "4411293041"
## 
## $documents[[15]]$version
## [1] 1.324e+09
## 
## 
## $documents[[16]]
## $documents[[16]]$id
## [1] "3833982421"
## 
## $documents[[16]]$version
## [1] 1.305e+09
## 
## 
## $documents[[17]]
## $documents[[17]]$id
## [1] "4268250663"
## 
## $documents[[17]]$version
## [1] 1.32e+09
## 
## 
## $documents[[18]]
## $documents[[18]]$id
## [1] "3998754283"
## 
## $documents[[18]]$version
## [1] 1.312e+09
## 
## 
## $documents[[19]]
## $documents[[19]]$id
## [1] "3998770753"
## 
## $documents[[19]]$version
## [1] 1.312e+09
## 
## 
## $documents[[20]]
## $documents[[20]]$id
## [1] "3998756183"
## 
## $documents[[20]]$version
## [1] 1.312e+09

Retrieve additional pages by using the page argument

mendeley_library(mc, page = 2)
## $total_results
## [1] 2473
## 
## $total_pages
## [1] 124
## 
## $current_page
## [1] 2
## 
## $items_per_page
## [1] 20
## 
## $document_ids
##  [1] "3998754433" "4268243913" "3998756863" "3998762513" "3998762163"
##  [6] "4263536783" "3998766753" "3998749383" "3998763073" "3998762843"
## [11] "4263528983" "3998754763" "4263530353" "3939877391" "3998757753"
## [16] "3998766593" "3998767863" "3998760633" "3998755183" "3998757693"
## 
## $documents
## $documents[[1]]
## $documents[[1]]$id
## [1] "3998754433"
## 
## $documents[[1]]$version
## [1] 1.312e+09
## 
## 
## $documents[[2]]
## $documents[[2]]$id
## [1] "4268243913"
## 
## $documents[[2]]$version
## [1] 1.323e+09
## 
## 
## $documents[[3]]
## $documents[[3]]$id
## [1] "3998756863"
## 
## $documents[[3]]$version
## [1] 1.312e+09
## 
## 
## $documents[[4]]
## $documents[[4]]$id
## [1] "3998762513"
## 
## $documents[[4]]$version
## [1] 1.312e+09
## 
## 
## $documents[[5]]
## $documents[[5]]$id
## [1] "3998762163"
## 
## $documents[[5]]$version
## [1] 1.312e+09
## 
## 
## $documents[[6]]
## $documents[[6]]$id
## [1] "4263536783"
## 
## $documents[[6]]$version
## [1] 1.323e+09
## 
## 
## $documents[[7]]
## $documents[[7]]$id
## [1] "3998766753"
## 
## $documents[[7]]$version
## [1] 1.312e+09
## 
## 
## $documents[[8]]
## $documents[[8]]$id
## [1] "3998749383"
## 
## $documents[[8]]$version
## [1] 1.312e+09
## 
## 
## $documents[[9]]
## $documents[[9]]$id
## [1] "3998763073"
## 
## $documents[[9]]$version
## [1] 1.312e+09
## 
## 
## $documents[[10]]
## $documents[[10]]$id
## [1] "3998762843"
## 
## $documents[[10]]$version
## [1] 1.312e+09
## 
## 
## $documents[[11]]
## $documents[[11]]$id
## [1] "4263528983"
## 
## $documents[[11]]$version
## [1] 1.323e+09
## 
## 
## $documents[[12]]
## $documents[[12]]$id
## [1] "3998754763"
## 
## $documents[[12]]$version
## [1] 1.312e+09
## 
## 
## $documents[[13]]
## $documents[[13]]$id
## [1] "4263530353"
## 
## $documents[[13]]$version
## [1] 1.323e+09
## 
## 
## $documents[[14]]
## $documents[[14]]$id
## [1] "3939877391"
## 
## $documents[[14]]$version
## [1] 1.309e+09
## 
## 
## $documents[[15]]
## $documents[[15]]$id
## [1] "3998757753"
## 
## $documents[[15]]$version
## [1] 1.312e+09
## 
## 
## $documents[[16]]
## $documents[[16]]$id
## [1] "3998766593"
## 
## $documents[[16]]$version
## [1] 1.312e+09
## 
## 
## $documents[[17]]
## $documents[[17]]$id
## [1] "3998767863"
## 
## $documents[[17]]$version
## [1] 1.323e+09
## 
## 
## $documents[[18]]
## $documents[[18]]$id
## [1] "3998760633"
## 
## $documents[[18]]$version
## [1] 1.312e+09
## 
## 
## $documents[[19]]
## $documents[[19]]$id
## [1] "3998755183"
## 
## $documents[[19]]$version
## [1] 1.312e+09
## 
## 
## $documents[[20]]
## $documents[[20]]$id
## [1] "3998757693"
## 
## $documents[[20]]$version
## [1] 1.312e+09

View pubs you've authored

authoredPubs(mc)
## $total_results
## [1] 13
## 
## $total_pages
## [1] 1
## 
## $current_page
## [1] 0
## 
## $items_per_page
## [1] 20
## 
## $document_ids
##  [1] "3831543861" "3831544031" "3831543891" "3831544051" "3831543981"
##  [6] "4637254213" "3831543971" "3831543951" "3859816541" "3831543911"
## [11] "3831544041" "3831544011" "3831543931"
## 
## $documents
## $documents[[1]]
## $documents[[1]]$id
## [1] "3831543861"
## 
## $documents[[1]]$version
## [1] 1.329e+09
## 
## 
## $documents[[2]]
## $documents[[2]]$id
## [1] "3831544031"
## 
## $documents[[2]]$version
## [1] 1.329e+09
## 
## 
## $documents[[3]]
## $documents[[3]]$id
## [1] "3831543891"
## 
## $documents[[3]]$version
## [1] 1.329e+09
## 
## 
## $documents[[4]]
## $documents[[4]]$id
## [1] "3831544051"
## 
## $documents[[4]]$version
## [1] 1.329e+09
## 
## 
## $documents[[5]]
## $documents[[5]]$id
## [1] "3831543981"
## 
## $documents[[5]]$version
## [1] 1.329e+09
## 
## 
## $documents[[6]]
## $documents[[6]]$id
## [1] "4637254213"
## 
## $documents[[6]]$version
## [1] 1.341e+09
## 
## 
## $documents[[7]]
## $documents[[7]]$id
## [1] "3831543971"
## 
## $documents[[7]]$version
## [1] 1.329e+09
## 
## 
## $documents[[8]]
## $documents[[8]]$id
## [1] "3831543951"
## 
## $documents[[8]]$version
## [1] 1.329e+09
## 
## 
## $documents[[9]]
## $documents[[9]]$id
## [1] "3859816541"
## 
## $documents[[9]]$version
## [1] 1.329e+09
## 
## 
## $documents[[10]]
## $documents[[10]]$id
## [1] "3831543911"
## 
## $documents[[10]]$version
## [1] 1.329e+09
## 
## 
## $documents[[11]]
## $documents[[11]]$id
## [1] "3831544041"
## 
## $documents[[11]]$version
## [1] 1.329e+09
## 
## 
## $documents[[12]]
## $documents[[12]]$id
## [1] "3831544011"
## 
## $documents[[12]]$version
## [1] 1.329e+09
## 
## 
## $documents[[13]]
## $documents[[13]]$id
## [1] "3831543931"
## 
## $documents[[13]]$version
## [1] 1.329e+09

Looks like I need to correctly identify more of my pubs (and also publish more).

Managing Mendeley groups

Which groups do I belong to?

head(myGroups(mc))
##                   x
## 1            530031
## 2 Future of Science
## 3            public
## 4               309
## 5            586171
## 6        altmetrics

Who belongs to this group?

Let's look at the future of science group.

groupPeople(mc, "Future of Science")
## Error: argument is of length zero

What documents does a group have?

We'll continue looking at the future of science group.

groupDocs(mc, "530031")
## $total_results
## [1] 309
## 
## $total_pages
## [1] 16
## 
## $current_page
## [1] 0
## 
## $items_per_page
## [1] 20
## 
## $document_ids
##  [1] "5191906574" "4344945792" "4188668402" "6059643804" "3995885362"
##  [6] "3730329302" "4188668412" "4446535425" "3679765222" "4411242365"
## [11] "5094830172" "6122584554" "4107365982" "5025153492" "4411242375"
## [16] "4107366002" "6106808664" "5891507934" "4536849435" "4100007002"
## 
## $documents
## $documents[[1]]
## $documents[[1]]$id
## [1] "5191906574"
## 
## $documents[[1]]$version
## [1] 1.381e+09
## 
## 
## $documents[[2]]
## $documents[[2]]$id
## [1] "4344945792"
## 
## $documents[[2]]$version
## [1] 1.36e+09
## 
## 
## $documents[[3]]
## $documents[[3]]$id
## [1] "4188668402"
## 
## $documents[[3]]$version
## [1] 1.354e+09
## 
## 
## $documents[[4]]
## $documents[[4]]$id
## [1] "6059643804"
## 
## $documents[[4]]$version
## [1] 1.38e+09
## 
## 
## $documents[[5]]
## $documents[[5]]$id
## [1] "3995885362"
## 
## $documents[[5]]$version
## [1] 1.357e+09
## 
## 
## $documents[[6]]
## $documents[[6]]$id
## [1] "3730329302"
## 
## $documents[[6]]$version
## [1] 1.354e+09
## 
## 
## $documents[[7]]
## $documents[[7]]$id
## [1] "4188668412"
## 
## $documents[[7]]$version
## [1] 1.377e+09
## 
## 
## $documents[[8]]
## $documents[[8]]$id
## [1] "4446535425"
## 
## $documents[[8]]$version
## [1] 1.354e+09
## 
## 
## $documents[[9]]
## $documents[[9]]$id
## [1] "3679765222"
## 
## $documents[[9]]$version
## [1] 1.373e+09
## 
## 
## $documents[[10]]
## $documents[[10]]$id
## [1] "4411242365"
## 
## $documents[[10]]$version
## [1] 1.377e+09
## 
## 
## $documents[[11]]
## $documents[[11]]$id
## [1] "5094830172"
## 
## $documents[[11]]$version
## [1] 1.384e+09
## 
## 
## $documents[[12]]
## $documents[[12]]$id
## [1] "6122584554"
## 
## $documents[[12]]$version
## [1] 1.38e+09
## 
## 
## $documents[[13]]
## $documents[[13]]$id
## [1] "4107365982"
## 
## $documents[[13]]$version
## [1] 1.354e+09
## 
## 
## $documents[[14]]
## $documents[[14]]$id
## [1] "5025153492"
## 
## $documents[[14]]$version
## [1] 1.382e+09
## 
## 
## $documents[[15]]
## $documents[[15]]$id
## [1] "4411242375"
## 
## $documents[[15]]$version
## [1] 1.334e+09
## 
## 
## $documents[[16]]
## $documents[[16]]$id
## [1] "4107366002"
## 
## $documents[[16]]$version
## [1] 1.368e+09
## 
## 
## $documents[[17]]
## $documents[[17]]$id
## [1] "6106808664"
## 
## $documents[[17]]$version
## [1] 1.38e+09
## 
## 
## $documents[[18]]
## $documents[[18]]$id
## [1] "5891507934"
## 
## $documents[[18]]$version
## [1] 1.372e+09
## 
## 
## $documents[[19]]
## $documents[[19]]$id
## [1] "4536849435"
## 
## $documents[[19]]$version
## [1] 1.354e+09
## 
## 
## $documents[[20]]
## $documents[[20]]$id
## [1] "4100007002"
## 
## $documents[[20]]$version
## [1] 1.354e+09
## 
## 
## 
## $group_id
## [1] "530031"
## 
## $group_name
## [1] "Future of Science"
## 
## $group_type
## [1] "public"
## 
## $group_invite_only
## [1] "0"

Then get metadata on these documents

groupDocInfo(mc, "530031", "4344945792")
## $abstract
## [1] "SUMMARY: Modern biological experiments create vast amounts of data which are geographically distributed. These datasets consist of petabytes of raw data and billions of documents. Yet to the best of our knowledge, a search engine technology that searches and cross-links all different data types in life sciences does not exist. We have developed a prototype distributed scientific search engine technology, 'Sciencenet', which facilitates rapid searching over this large data space. By 'bringing the search engine to the data', we do not require server farms. This platform also allows users to contribute to the search index and publish their large-scale data to support e-Science. Furthermore, a community-driven method guarantees that only scientific content is crawled and presented. Our peer-to-peer approach is sufficiently scalable for the science web without performance or capacity tradeoff. Availability and Implementation: The free to use search portal web page and the downloadable client are accessible at: http://sciencenet.kit.edu. The web portal for index administration is implemented in ASP.NET, the 'AskMe' experiment publisher is written in Python 2.7, and the backend 'YaCy' search engine is based on Java 1.6. CONTACT: urban.liebel@kit.edu Supplementary Material: Detailed instructions and descriptions can be found on the project homepage: http://sciencenet.kit.edu."
## 
## $authors
## $authors[[1]]
##    forename     surname 
## "Dominic S" "Lütjohann" 
## 
## $authors[[2]]
## forename  surname 
## "Asmi H"   "Shah" 
## 
## $authors[[3]]
##    forename     surname 
## "Michael P"  "Christen" 
## 
## $authors[[4]]
##  forename   surname 
## "Florian" "Richter" 
## 
## $authors[[5]]
##  forename   surname 
## "Karsten"   "Knese" 
## 
## $authors[[6]]
## forename  surname 
##  "Urban" "Liebel" 
## 
## 
## $cast
## list()
## 
## $citation_key
## [1] "Lutjohann2011"
## 
## $dateAccessed
## [1] "20/06/11"
## 
## $day
## [1] "15"
## 
## $deletionPending
## [1] "0"
## 
## $editors
## list()
## 
## $issn
## [1] "1367-4811"
## 
## $issue
## [1] "12"
## 
## $isRead
## [1] "1"
## 
## $isStarred
## [1] "0"
## 
## $isAuthor
## [1] "0"
## 
## $keywords
## list()
## 
## $month
## [1] "6"
## 
## $pages
## [1] "1734-5"
## 
## $producers
## list()
## 
## $published_in
## [1] "Bioinformatics (Oxford, England)"
## 
## $tags
## [1] "Semantic web"
## 
## $title
## [1] "'Sciencenet'--towards a global search and share engine for all scientific knowledge."
## 
## $translators
## list()
## 
## $volume
## [1] "27"
## 
## $url
## [1] "http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=3106183&tool=pmcentrez&rendertype=abstract"
## 
## $year
## [1] "2011"
## 
## $id
## [1] "4344945792"
## 
## $type
## [1] "Journal Article"
## 
## $publication_outlet
## [1] "Bioinformatics (Oxford, England)"
## 
## $identifiers
##        issn 
## "1367-4811" 
## 
## $mendeley_url
## [1] "http://www.mendeley.com/catalog/sciencenettowards-global-search-share-engine-scientific-knowledge/"
## 
## $canonical_id
## [1] "b2b46e6d-4339-3fe5-b036-c62a7f1cb04a"
## 
## $files
## $files[[1]]
##                                  file_hash 
## "fa05ba3de193da26f94ea8977b7805b5e5b7ab12" 
##                                  file_size 
##                                    "82009" 
##                             file_extension 
##                                      "pdf" 
##                                 date_added 
##                      "2011-09-06 19:45:45" 
## 
## 
## $folders_ids
## list()
## 
## $modified
## [1] 1.36e+09
## 
## $version
## [1] 1.36e+09
## 
## $added
## [1] 1.311e+09
## 
## $notes
## [1] ""
## 
## $discipline
## [1] "Biological Sciences"
## 
## $subdiscipline
## NULL

Note: You can programmatically link these function calls together to process entire groups at a time but I am walking you through indiviudal calls for this tutorial.

Create a new Mendeley group

createGroup(mc, "Test_group", type = "open")
## Successfully created  Test_group
## An object of class "MendeleyGroupID"
## [1] "3897831"                                           
## [2] "http://www.mendeley.com/groups/3897831/test-group/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment