install.packages("stats")

Hello,

can someone please help me out, when I try to install, install.packages("stats"), it keeps asking me to restart the R studio session and when I do that it keeps asking me to do that again and again. Even when I try to update the package updates it keeps doing that.

what should I do?

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.

that's perfect thank you