stats is always included in a mainstream R release, so given that you have R you likely have stats without the need to install it manually.
try
(require(stats))
if the result is TRUE thats explicit that you have it and its attached.
You typically can use stats without the need for this, as like I said, its a standard component of R and is auto-attached typically.