Hi,

I can successfully define  in .R and in  > R

"%&%" <- function(a,b) { paste(a,b,sep="") }

nd use in R >

 "a" %&% "b"
[1] "ab"

but in a package definition .Rd
....
\name{pasteInfix}
\alias{pasteInfix}
\alias{\%&\%
}
\usage{ a  \%&\% b
}

will fail in R CMD   check --as-cran  saying

"I am" %&%
+  " hungry" # [1] "I am hungry"
Error: could not find function "%&%"
Execution halted.

What is wrong in my .Rd file?

PS: The placement of the closing } and the escaping of "%" seem also critical.

TIA  Christian

--
Christian W. Hoffmann
Mathematiker
CH - 8915 Hausen am Albis, Schweiz
Rigiblickstrasse 15 b, Tel.+41-44-7640853
mailto: christ...@echoffmann.ch
home: www.echoffmann.ch

______________________________________________
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.

Reply via email to