How can I trace apply function?

I have a large number of datasets which run in the following way

f1 <-list(sample(5),
          sample(4),
          sample(2))

f2 <-list(sample(5),
          sample(4),
          sample(2))


func=function(x,y){
  z=2*x+y
  return(z)
}

parallel::mcmapply(function(x,y){
  return(func(x,y))
}, x = f1, y = f2, mc.cores=1)

I am wondering how can I see the progeress of work.

func=function(x,y){
  z=2*x+y
  cat(".")
  return(z)
}

possibly this ?

1 Like

is it possible to print filenames ?

Sure, I dont see why not

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.