Although itβs really hard for me to believe that the Google search for windows cmd disk space turned out to be empty for you, this should provide the necessary information without the need for administrator privileges:
disks <- system("wmic logicaldisk get size,freespace,caption", inter=TRUE) disks <- read.fwf(textConnection(disks[1:(length(disks)-1)]), widths=c(9, 13, 13), strip.white=TRUE, stringsAsFactors=FALSE) colnames(disks) <- disks[1,] disks <- disks[-1,] rownames(disks) <- NULL disks
Just thought I'd add that this answer comes from a person who is mainly an OS X / Linux user.
source share