Re: [R] Strange message after reading multiple scripts from one folder

2016-07-29 Thread MacQueen, Don
For what it's worth (perhaps little...), I would normally do for (pn in pathnames) source(pn) It's clearer to read and won't return a strange value. I doubt there will be a noticeable difference in speed. It can easily be extended to be more informative, as in for (pn in pathnames) { cat('--- n

Re: [R] Strange message after reading multiple scripts from one folder

2016-07-29 Thread Keith Jewell
I can't immediately see it in the help text but it seems that source returns a list with two named elements; value and visible. I surmise that it is returned using withVisible (qv). KJ On 29/07/2016 13:26, jim holtman wrote: Hard to tell without seeing the scripts. Do you have a matrix in yo

Re: [R] Strange message after reading multiple scripts from one folder

2016-07-29 Thread Fox, John
Dear Frank, What you see isn't a "message" but the result returned by sapply(). The ?s indicate that sapply() didn't know what to do with the corresponding element. In an individual use of source(), the result, a 2-element list, is returned invisibly, so you don't see it. To see what's going

Re: [R] Strange message after reading multiple scripts from one folder

2016-07-29 Thread jim holtman
Hard to tell without seeing the scripts. Do you have a matrix in your scripts that have "value" and "visible" as row names? You probably have some statement that is causing output and so the problem is "your" as to how to avoid the message. So look at your scripts to see if anything refers to ei