The formula interface for layer functions

The list might be `list(lat = ..., lng = ..., layerId = ..., options = ...)`, what if options contains a formula (rather than being itself a formula)? I see from your example below that it does work, I just have no idea how...?