ceabiodb / biodb

An R package framework for accessing biological and chemical databases and developing or extending new connectors.
GNU Affero General Public License v3.0
11 stars 2 forks source link

Helper function for multiple BiodbUrl instantiations #581

Open pkrog opened 2 years ago

pkrog commented 2 years ago

Write a helper function that factorize the following:

urls <- vapply(id, function(x) BiodbUrl$new(url=url,                        
        params=list(chebiId=x))$toString(), FUN.VALUE='') 

Found in ChebiConn.R of biodbChebi extension package in functions doGetEntryPageUrl() and doGetEntryImageUrl().