[Rd] package building problem under Windows Vista

John Fox jfox at mcmaster.ca
Sat Apr 19 13:52:26 CEST 2008

Dear list members,

I've encountered the following problem trying to build a package under
Windows Vista (SP1). The problem occurs with both R 2.6.2 and R 2.7.0 RC
(from which this output was produced). The package builds just fine on my XP
(SP2) machine. Please see some further comments below.

---------- snip -------------

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

d:\R-packages>R CMD build tradeCosts
* checking for file 'tradeCosts/DESCRIPTION' ... OK
* preparing 'tradeCosts':
* checking DESCRIPTION meta-information ... OK
* installing the package to re-build vignettes
installing R.css in C:/Users/JOHNFO~1/AppData/Local/Temp/Rinst602447586

---------- Making package tradeCosts ------------
  adding build stamp to DESCRIPTION
  installing NAMESPACE file and metadata
Error in file(file, "r") : unable to open connection
Calls: <Anonymous> -> parseNamespaceFile -> parse -> file
In addition: Warning message:
In file(file, "r") :
  cannot open file
ts/NAMESPACE', reason 'Permission denied'
Execution halted
make[2]: *** [nmspace] Error 1
make[1]: *** [all] Error 2
make: *** [pkg-tradeCosts] Error 2
*** Installation of tradeCosts failed ***

Removing 'C:/Users/JOHNFO~1/AppData/Local/Temp/Rinst602447586/tradeCosts'
* creating vignettes ... OK
* removing junk files
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'tradeCosts_0.3-0.tar.gz'


---------- snip -------------

I believe that the error is related to the vignette in the package, since I
can build packages without a vignette. Clearly there is a file-permission
problem but: (1) I'm using an account with administrator privileges; (2) R
is installed into c:\R (and the problem persists even when I install R into
d:\R); (3) the problem persists when I run the command window and R itself
as administrator, and when I turn off account controls; (4) the problems
persists when I reset the environment variables temp and tmp to d:\temp and
set the permissions to d:\temp so that all groups and users have full
control over that directory. 

I'm tempted to dump Vista but I've been trying to persist with it since most
people (e.g., my students) buying new Windows machines will be getting it.
Although I've read section 2.24 of the R for Windows FAQ, it's quite
possible that I've missed something of relevance there.

Any help would be appreciated.

Thanks in advance,

John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4

More information about the R-devel mailing list