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
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
; From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Frank S.
> Sent: July 29, 2016 6:52 AM
> To: r-help@r-project.org
> Subject: [R] Strange message after reading multiple scripts from one folder
>
> Dear list,
>
> I have one folder named "scripts_JMbayes&
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
Dear list,
I have one folder named "scripts_JMbayes", wich contains 10 R scripts.
I can read them properly by doing:
> pathnames <- list.files(pattern="[.]R", path="Mydir/scripts_JMbayes",
> full.names = TRUE)
> sapply(pathnames, USE.NAMES = FALSE, FUN = source,)
However, R generates the fol
5 matches
Mail list logo