Error install.packages with cdf package I've made

I have a university laptop that has an online file store, which R keeps trying to save to instead of the C drive. Running it off the file store makes it incredibily slow. I'm getting an error message when trying to install a cdf package that I've made.

I'm setting the file location to my c drive:


[1] "C:/Users/mal1u17/Documents/RStudio" "C:/Program Files/R/R-3.6.2/library"

I'm downloading the cdf file onto my c drive, gunzip and making a cdf package:

download.file("", detfile = "C:/Users/mal1u17/Documents/RStudio", "ADXECv1a520743.cdf.gz")


make.cdf.package("ADXECv1a520743.cdf", species = "Homo sapiens", unlink = TRUE, package.path = "C:/Users/mal1u17/Documents/RStudio")

But when I try to install the package I get the following error:

install.packages("adxecv1a520743cdf", lib= "C:/Users/mal1u17/Documents/RStudio", repos = NULL, type = "source")
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Warning: invalid package 'adxecv1a520743cdf'
Error: ERROR: no packages specified
Warning in install.packages :
installation of package ‘adxecv1a520743cdf’ had non-zero exit status

I've been going round in circles with this for hours and would very much appreciate any help!

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