when I run a long routine in R, is it possible to show the intermediate steps?
For instance, I'm working with a routine for building randomized versions of an original matrix, based on null models (package bipartite):
#Build N randomized version of the matrix contained in data
nulls <- nullmodel(data, N=1000, method=3)
#Calculate the same network metric for all N randomized matrices
modules.nulls <- sapply(nulls, computeModules, method = "Beckett")
Depending on the processing power of the computer and the size of N, it takes very long to finish the routine. I would like to include a code to show on the console all intermediate steps for the first and second parts of the routine. Something like "matrix 1, matrix 2... matrix N".
Could you please help me? Thank you!