Thank you for the replies. As Prof Brian Ripley mentioned, in my case, (I was using the latest r devel) and "R CMD build pkgname" indeed put a directory called build with a file named vignette inside it. So I tried "R CMD build --no-build-vignettes pkgname" and the problem got solved. Thanks again.
[[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list 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.