[R] R 3.2.3 on Win8; mkdir command produces error

Duncan Murdoch murdoch.duncan at gmail.com
Mon Feb 15 00:52:21 CET 2016

On 14/02/2016 2:40 PM, HEATHER MICHEL via R-help wrote:
> I am trying to complete a homework assignment, but I know very little about R.The assignment says, "For this programming assignment you will need to unzip this file and create the directory 'specdata".I unzipped the file on my desktop, and my computer automatically created a new folder which I renamed "specdata."However, when I try to make this directory within R using mkdir, I get this:
>> mkdir (specdata)Error: could not find function "mkdir"> ?mkdirNo documentation for ‘mkdir’ in specified packages and libraries:you could try ‘??mkdir’> ??mkdir> pwdError: object 'pwd' not found
> This makes me believe that some of the old command names have been updated in this version that is only 2 months old. Of course, the lectures I took notes on used an older version of R and were created more than 2 months ago.
> Please tell me the command I should be using to create a directory named 'specdata' in R 3.2.3

There hasn't been a mkdir() function in R that I can recall.  The 
function name is dir.create().  But there might be some package that has 
a mkdir() function.

Remember to quote the name; you probably need


Duncan Murdoch

More information about the R-help mailing list