Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread Martin Morgan
For what it's worth, the package loads many DLLs in its NAMESPACE via repeated calls to useDynLib. antsImageRead is not in the first DLL loaded, and from NEWS.Rd, the problem comes from o A foreign function call (.C() etc) in a package without a PACKAGE argument will only look in

Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread Duncan Murdoch
On 13-04-10 5:35 PM, brian avants wrote: Thank you for the advice - the function formed like this: antsImageRead <- function( filename , dimension , pixeltype = "float" ) { rval <- (.Call("antsImageRead", filename, pixeltype, dimension)) return(rval) } worked up to R 2.15.x but fai

Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread brian avants
Thank you for the advice - the function formed like this: antsImageRead <- function( filename , dimension , pixeltype = "float" ) { rval <- (.Call("antsImageRead", filename, pixeltype, dimension)) return(rval) } worked up to R 2.15.x but fails in R 3.0.x if i include the PACKAGE = 'wh

Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread Duncan Murdoch
On 10/04/2013 2:25 PM, brian avants wrote: hi simon thank you for your questions answers here: I won't answer your question directly but some suggestions: > a) does adding PACKAGE="ANTsR" to .Call change anything? (It should really > be there if you are using strings as names) > this does

Re: [Rd] Issue with Control-Z in a text file on Windows - readLines() appears to truncate

2013-04-10 Thread Duncan Murdoch
On 10/04/2013 10:20 AM, Sean O'Riordain wrote: Working on Windows I have had to deal with CSV files that, unfortunately, contain embedded Control-Zs, i.e. ASCII character 26 in decimal, and the readLines() function in R on Windows (2.15.2 and 3.0.0) appears to truncate at the control-Z. There is

[Rd] localeToCharset() returns NA for the Hong Kong locale

2013-04-10 Thread Yihui Xie
Hi, When Sys.getlocale("LC_CTYPE") returns 'Chinese (Traditional)_Hong Kong S.A.R..950' to some Hong Kong Windows users, localeToCharset() returns NA instead of CP950 due to: > localeToCharset if (.Platform$OS.type == "windows") { x <- strsplit(locale, ".", fixed = TRUE)[[1L]]

[Rd] Issue with Control-Z in a text file on Windows - readLines() appears to truncate

2013-04-10 Thread Sean O'Riordain
Working on Windows I have had to deal with CSV files that, unfortunately, contain embedded Control-Zs, i.e. ASCII character 26 in decimal, and the readLines() function in R on Windows (2.15.2 and 3.0.0) appears to truncate at the control-Z. There is no problem at all on Ubuntu Linux with R 3.0.0.

Re: [Rd] savePlot() under Windows

2013-04-10 Thread Kanell17
I am having the same problem and I don't know how to fix it. Has savePlot been fixed? Is there something else I'm supposed to be doing? -- View this message in context: http://r.789695.n4.nabble.com/savePlot-under-Windows-tp4663712p4663903.html Sent from the R devel mailing list archive at Nabb

Re: [Rd] [R] Question on Stopword Removal from a Cyrillic (Bulgarian)Text

2013-04-10 Thread Milan Bouchet-Valat
Le mercredi 10 avril 2013 à 13:17 +0200, Ingo Feinerer a écrit : > On Wed, Apr 10, 2013 at 10:29:27AM +0200, Milan Bouchet-Valat wrote: > > Thanks for the reproducible example. Indeed, it does not work here > > either (Linux with UTF-8 locale). The problem seems to be in the call to > > gsub() in r

Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread brian avants
hi simon thank you for your questions answers here: I won't answer your question directly but some suggestions: > a) does adding PACKAGE="ANTsR" to .Call change anything? (It should really > be there if you are using strings as names) > this does change things for instance, this works:

Re: [Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread Simon Urbanek
On Apr 10, 2013, at 1:53 PM, brian avants wrote: > hello everyone > > we are developing a package that has worked up until R3.0 which we just > tested. > > the issue is as above when we call a function that works in R 2.15.2 > from R 3.0 we get an error > > Error in .Call("antsImageRead"

[Rd] question re: error message --- package error: "functionName" not resolved from current namespace

2013-04-10 Thread brian avants
hello everyone we are developing a package that has worked up until R3.0 which we just tested. the issue is as above when we call a function that works in R 2.15.2 from R 3.0 we get an error Error in .Call("antsImageRead", filename, pixeltype, dimension) : "antsImageRead" not resolved fr

Re: [Rd] Fwd: R unzip method gives filenames as character

2013-04-10 Thread Prof Brian Ripley
On 09/04/2013 09:33, Sean O'Riordain wrote: Question: would it be better if the contents list of the unzip() function returned the filenames as character rather than factor since they are probably unique strings? That is what the help page says it does, so this is bug -- now corrected in R-pat