This may be a very easy question for someone - I am able to use list.files() to obtain a list of files in a given directory, but if I want to get a list of director
list.files()
What about something like this, give it a try:
dir('.')[file.info(dir('.',full.names=T))$isdir]