Multiple linear Regression - dynamic input parameter selection


I am trying to run multiple regression model using R data function. I am facing challenge in passing input parameter dynamically. The user should be able to select input parameter to be passed to model. 

If anyone has worked with similar situation, do let me know.

Thanks in advance.