title: Error in UseMethod("train") : no applicable method for 'train' applied to an object of class "formula"
body: <p>Tried to use <code>RRegrs()</code> function on <code>BostonHousingPrice</code> data in R, but getting error as shown in the image.</p>
  
  <p>How can I tackle below error in R?</p>
  
  <p><a href="https://i.stack.imgur.com/S9RaW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S9RaW.jpg" alt="Error in RRegrs()"></a></p>