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:

.libPaths("C:/Users/mal1u17/Documents/RStudio")
.libPaths()

[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("https://www.ncbi.nlm.nih.gov/geo/download/?acc=GPL23985&format=file&file=GPL23985_ADXECv1a520743.cdf.gz", detfile = "C:/Users/mal1u17/Documents/RStudio", "ADXECv1a520743.cdf.gz")

gunzip("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")
'\filestore.soton.ac.uk\users\mal1u17\mydocuments'
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.