Hi!

I have this code which is working


formula <- function(x){

return(x)
}

For( x in names)

        {

            x5 <- rbind(x5,formula(x))

        }


Now, I want to convert this code to parallel processing, so i am using
foreach function

foreach(x=names, .packages="checkpoint" ,.combine='rbind') %dopar%
        {
            x5 <- rbind(x5,formula(x))

        }

Now, I know that have to load packages to workers which I did!
but I also need to login to secure sever, for downloading some data, which
I did , in the case of for loop!

how can I do the same for foreach loop?

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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