packages installed in tmp directory and can't access data.

I am learning R through a Coursera course on Data Analytics using R. Following the instructions for an exercize, I install.packages("skimr"). The result is a message "the downloaded source packages are in ‘/tmp/RtmpjWmqKm/downloaded_packages’" So, I attempt library("skimr") and data("skimr") and get the error message "there is no package called "skimr". I then attempt library("/tmp/RtmpjWmqKm/downloaded_packages/skimr") and get the same message that package "skimr" does not exist there. So, now what do I do? Thank you.

Can you include the full output of the

install.packages("skimr")

command here?

Error in library("/tmp/RtmpjWmqKm/downloaded_packages/skimr") :
there is no package called ‘/tmp/RtmpjWmqKm/downloaded_packages/skimr’

Sorry, i mean the output of

install.packages("skimr")

command here?

E.g. for me it looks like this:

❯ install.packages("skimr")
Installing package into ‘/Users/gaborcsardi/Library/R/arm64/4.3/library’
(as ‘lib’ is unspecified)
also installing the dependency ‘repr’

trying URL 'https://cloud.r-project.org/bin/macosx/big-sur-arm64/contrib/4.3/repr_1.1.6.tgz'
Content type 'application/x-gzip' length 123610 bytes (120 KB)
==================================================
downloaded 120 KB

trying URL 'https://cloud.r-project.org/bin/macosx/big-sur-arm64/contrib/4.3/skimr_2.1.5.tgz'
Content type 'application/x-gzip' length 1223940 bytes (1.2 MB)
==================================================
downloaded 1.2 MB


The downloaded binary packages are in
	/var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T//RtmpHnnX14/downloaded_packages

It turns out it was just my lack of understanding. Apparently skimr has no datasets in it, just functions and I was able to run the function skim_without_charts, so it seems that everything is okay. Thank you.

This topic was automatically closed 42 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.