How do I install R packages?

I need to install a few packages like tmap to my R replit project. How would I do this? library() returns an error.

I am very new to R.

You are viewing a single comment. View All

hello 👋 i want to suggest you to check some tutorials first here is the link i found on web I thought it will help click here!! thank-you hope it helps