You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very important for testing: validity of every request needs to be measured, and the best way to do it is by getting the object back from the google sheet and comparing it to the requested object specification
Could be useful when trying to insert similar object into googlesheets
The text was updated successfully, but these errors were encountered:
General constructor system is currently embedded in deepgs4. System is currently used in few systems:
gen_dgs4Obj() function is general constructor. It handles most of the logic used during creation of dgs4Obj objects, being most of the items received from GoogleSheet API:
takes the nested list received object inside obj argument
takes the specific object class name
optionally intakes sheetId argument
invokes either specific object generator (which needs to be added into pkg_env$generators). These generators need to be used when an underlying class needs another dgs4Obj in any of their arguments
if the object is basedgs4Obj, meaning that its constructor intakes in their arguments only atomic values, it passes values available in obj into arguments of ClassName() generator. For such objects, it also can pass sheetId argument, if the underlying function intakes it AND sheetId is not available in the received obj
try_to_gen() invokes gen_dgs4Obj() function internally. It will try to construct an object unless the argument passed into it is NULL - many objects intaked as arguments are optional!
try_to_gen_inplace() works similarly like try_to_gen(), but it intakes a list and name of the field where the object should be generated in. It is preferred to use this one, as it generates cleaner syntax in costructor.
This information needs to be added into contributor guidelines #8
The text was updated successfully, but these errors were encountered: