powered by
Returns a list of child IDs for a ScienceBase item
item_list_children( sb_id, fields = c("id", "title"), ..., session = current_session(), limit = 20 )
List of sbitem for each child item.
sbitem
An sbitem object or a character ScienceBase ID corresponding to the item
A character vector of requested data fields. Defaults to 'id' and 'title'. Full list of possible fields is available online in SB documentation.
Additional parameters are passed on to GET, POST, HEAD, PUT, or DELETE
GET
POST
HEAD
PUT
DELETE
Session object from authenticate_sb. Defaults to anonymous or last authenticated session
authenticate_sb
Max children returned.
if (FALSE) { item_list_children(user_id()) } # \donttest{ item_list_children(as.sbitem('5060b03ae4b00fc20c4f3c8b')) item_list_children(item_get('5060b03ae4b00fc20c4f3c8b')) # }
Run the code above in your browser using DataLab