lvaudor / glitter

an R package which writes SPARQL queries
https://lvaudor.github.io/glitter
44 stars 5 forks source link

how to best support tweaking of spq_perform() arguments #165

Closed maelle closed 1 year ago

maelle commented 1 year ago

I wonder whether the endpoint and request type should actually be arguments of spq_init().

Then an user could create a basic query object at the beginning of a script and use it in all other calls.

An alternative would be to have options as default for spq_perform(endpoint = getOption("glitter.endpoint", "Wikidata")) which is something we have for some other spq_perform() arguments!

lvaudor commented 1 year ago

yes, them being arguments of spq_init() is a very good idea. You're on fire!