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]]

