Also ... it doesn't make sense to create a directory that already exists in the first place. Are you perhaps thinking about setting the working directory to "specdata"? That would be the setwd() command.
B. On Feb 14, 2016, at 6:52 PM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > 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 > > dir.create("specdata") > > Duncan Murdoch > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.