Uploading pacman packages

library(datasets) # Load base packages manually

Installs pacman ("package manager") if needed

if (!require("pacman")) install.packages("pacman")

Use pacman to load add-on packages as desired

pacman::p_load(pacman, rio, tidyverse)

This is the code I use for uploading but I keep getting the following error:
Error: unable to create temporary directory ‘C:\Users\HP\Documents\R\win-library\4.1\file18cc6d9878ce’
In addition: Warning message:
In dir.create(tmpDir) :
cannot create dir 'C:\Users\HP\Documents\R\win-library\4.1\file18cc6d9878ce', reason 'No such file or directory'

Please assist, I'm using Windows 10

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.