[Rd] package building problem under Windows Vista
John Fox
jfox at mcmaster.ca
Sat Apr 19 15:52:03 CEST 2008
Dear Gabor,
> -----Original Message-----
> From: Gabor Grothendieck [mailto:ggrothendieck at gmail.com]
> Sent: April-19-08 9:10 AM
> To: John Fox
> Cc: R-devel
> Subject: Re: [Rd] package building problem under Windows Vista
>
> Note that CRAN is also having a problem with the package
> so its not just you:
>
> http://cran.r-project.org/bin/windows/contrib/2.7/check/tm-check.log
I'm afraid that I don't see a problem in that check log -- just a string of
OKs -- though there is a warning in the log at
http://cran.r-project.org/bin/windows/contrib/2.7/check/tradeCosts-check.log
. Recall, however, that the package builds (and checks) just fine for me
under XP SP2, and that the package fails to build under R 2.6.2 on Vista,
for which there is no warning in the package check.
When you try to build the tradeCosts package *with* the vignettes, do you
get the same file-permission error that I do? Have you been able to build
other packages with both vignettes and namespaces successfully?
Thanks for the suggestions.
John
>
> I also have a problem with the vignettes (note
> there are two) but as with you this works:
>
> Rcmd build --no-vignettes tradeCosts
>
> I don't have any special environment variables set for temporary
> directories and I use C:\Program Files\R\...
> for R. I use Rcmd.bat and sweave.bat from batchfiles found at:
> http://batchfiles.googlecode.com
> which finds R in the registry so no paths need be set.
> I am on Vista but you seem to have SP1 which I don't
> have yet.
>
> I can build other packages so there
> is probably something that needs fixing in their vignettes.
>
> On Sat, Apr 19, 2008 at 7:52 AM, John Fox <jfox at mcmaster.ca> wrote:
> > 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
> > 'C:/Users/JOHNFO~1/AppData/Local/Temp/Rinst602447586/tradeCos
> > 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'
> >
> >
> > d:\R-packages>
> >
> > ---------- 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
> >
> > --------------------------------
> > John Fox, Professor
> > Department of Sociology
> > McMaster University
> > Hamilton, Ontario, Canada L8S 4M4
> > 905-525-9140x23604
> > http://socserv.mcmaster.ca/jfox
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
More information about the R-devel
mailing list