Displaying 13 results from an estimated 13 matches for "parsenamespacefile".
2010 Nov 27
1
Bug in parseNamespaceFile or switch( , ... ) ?
parseNamespaceFile() doesn't seem to detect misspelled directives. Looking
at its code I see
switch(as.character(e[[1L]]),
<lots of args omitted here>,
stop(gettextf("unknown namespace directive: %s",
deparse(e)), call. = FALSE, domain = NA))
but this doesn't seem t...
2010 Jan 19
1
Error compiling R 2.10.1 on AIX
I'm trying to compile R 2.10.1 on AIX 5.3, and am getting the following
error:
Error in read.dcf(file = descfile) :
Line starting 'Package: tools ...' is malformed!
Calls: makeLazyLoading ... code2LazyLoadDB -> loadNamespace ->
parseNamespaceFile -> read.dcf
Execution halted
make[3]: *** [all] Error 1
make[3]: Leaving directory
`/afs/.isis.unc.edu/pkg/r-2.10.1/.build/rs_aix53/R-patched/src/library/tools
'
My environment and configure settings are as follows:
export PATH=/usr/local/bin:/opt/freeware/bin:$PATH
export OBJECT_MODE...
2007 Nov 05
2
namespace crash on S3method("as.ff",function)
...f",function)
in NAMESPACE, the installation fails with some kind of parsing error:
adding build stamp to DESCRIPTION
installing NAMESPACE file and metadata
Fehler in parse(nsFile) : Unerwartetes ')' bei
348:
349: S3method("as.ff",function)
Calls: <Anonymous> -> parseNamespaceFile -> parse
Ausf?hrung angehalten
make[2]: *** [nmspace] Error 1
make[1]: *** [all] Error 2
make: *** [pkg-ff] Error 2
*** Installation of ff failed ***
Is this a bug? Any ideas?
Best regards
Jens
P.S. with as.ff() we can do things like
ffx <- as.ff(x) # as.ff.default() turns a standard R...
2008 Oct 14
2
can't R CMD INSTALL on WinXP
...package randomForest ------------
adding build stamp to DESCRIPTION
installing NAMESPACE filecp: cannot create regular file
`c:/R/library/randomFo
rest/NAMESPACE': Permission denied
and metadata
Error in file(file, "r") : cannot open the connection
Calls: <Anonymous> -> parseNamespaceFile -> parse -> file
In addition: Warning message:
In file(file, "r") :
cannot open file 'c:/R/library/randomForest/NAMESPACE': Permission
denied
Execution halted
make[2]: *** [nmspace] Error 1
make[1]: *** [all] Error 2
make: *** [pkg-randomForest] Error 2
*** Installation of...
2015 Jul 07
1
[ on call
...;label" "label<-"
[5] "align<-" "align" "digits<-" "digits"
[9] "display<-" "display" "xtable" "print.xtable"
[13] "toLatex.xtable"
This code is from parseNamespaceFile (on the xtable package).
Mick Jordan
2008 Apr 19
2
package building problem under Windows Vista
...ttes
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
m...
2006 Jul 26
2
Install R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11
....1/amd64:/usr/local/lib
root at Huba #
../src/R-patched_2006-07-24/configure
--prefix=/opt/R-2.3.1-patched_2006-07-24-Sun_Studio_11 --with-readline
--disable-mbcs R_PAPERSIZE=letter --disable-rpath --with-bzlib
--with-zlib --with-spcre --with-tcltk --disable-R-profiling
--disable-nls
Error in parseNamespaceFile(package, package.lib, mustExist = FALSE) :
subscript out of bounds
Execution halted
*** Error code 1
The following command caused the error:
(cat
../../../../src/R-patched_2006-07-24/src/library/tools/R/makeLazyLoad.R;
\
echo "makeLazyLoading(\"tools\")") | \
R_DEFA...
2010 Feb 03
0
Can't compile R 2.10.1 on AIX
I'm trying to compile R 2.10.1 on AIX, and getting the following errors when it is trying to build the tools package:
Error in read.dcf(file = descfile) :
Line starting 'Package: tools ...' is malformed!
Calls: makeLazyLoading ... code2LazyLoadDB -> loadNamespace -> parseNamespaceFile -> read.dcf
Execution halted
make: *** [all] Error 1
My environment and configure settings look like this:
export PATH=/usr/local/bin:/opt/freeware/bin:$PATH
export OBJECT_MODE=64
export LIBICONV=/opt/freeware
export CC="xlc_r -q64"
export CFLAGS="-O -qstrict"...
2010 Oct 18
0
wishlist: system.file(..., mustExist = TRUE)
...no file is found then system.file throws an error? Then my
example could be
scan(what="", sep="\n", system.file("DESCRIPTION", mustExist=TRUE))
and it would throw an informative error message instead of
returning "" if DESCRIPTION were misspelled.
base::parseNamespaceFile uses an argument called mustExist
for this sort of thing and several functions in package:methods
(elNamed, getGeneric, etc.) use mustFind.
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
2013 Mar 12
0
duplicate export entries in NAMESPACE
...;curlOptions"
utils 2.15.3 : "RweaveLatexOptions"
Would it be helpful for 'check' to alert package writers to this?
I made the list using f():
f <- function ()
{
for(pkg in installed.packages()[,"Package"]) {
try( {
exports <- parseNamespaceFile(pkg, R.home("library"))$exports
if (any(dup <- duplicated(exports))) {
cat(pkg, format(packageVersion(pkg)), ":", deparse(exports[dup]), "\n")
}
}, silent = TRUE)
}
}
I suppose it should also check for duplicate...
2013 Mar 13
0
R-devel Digest, Vol 121, Issue 13
...t;RweaveLatexOptions"
> Would it be helpful for 'check' to alert package writers to this?
>
> I made the list using f():
> f<- function ()
> {
> for(pkg in installed.packages()[,"Package"]) {
> try( {
> exports<- parseNamespaceFile(pkg, R.home("library"))$exports
> if (any(dup<- duplicated(exports))) {
> cat(pkg, format(packageVersion(pkg)), ":", deparse(exports[dup]), "\n")
> }
> }, silent = TRUE)
> }
> }
> I su...
2014 Jan 21
1
Which functions are there to parse a NAMESPACE file (without installing the package)
For the purpose of automatic documentation, I want to parse a NAMESPACE
file of the package to be documented.
I want to know the contents:
exportedClasses , exportedMethods and so on
to be able to hide the part of the documentation not exposed in the
NAMESPACE file.
Up to now I am parsing the file myself and do some regexpr stuff to get
what i want.
It would however be much nicer to use the
2010 Jan 25
1
Help on R-2.10.1 installation on AIX5.3
...rectory `/rnd/homes/tmp/R-2.10.1/src/library/tools/src'
make[4]: Leaving directory `/rnd/homes/tmp/R-2.10.1/src/library/tools'
Error in read.dcf(file = descfile) :
Line starting 'Package: tools ...' is malformed!
Calls: makeLazyLoading ... code2LazyLoadDB -> loadNamespace ->
parseNamespaceFile -> read.dcf
Execution halted
make[3]: *** [all] Error 1
make[3]: Leaving directory `/rnd/homes/tmp/R-2.10.1/src/library/tools'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/rnd/homes/tmp/R-2.10.1/src/library'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/rnd/homes/tmp/R-2...