Thank you for the link.

This source code is too complicated for me in this moment. I'll see what I can do in the future. For now, I'll just use RQuantlib delta or maybe create my own function based on the Black-Scholes formula.