Dear everyone,
Several updates:
I located the problem - the first matrix in the code lines above - matrix(rep(dat1[, i], length(var3)) - was supposed to provide replicates of the columns i from the first data set, but it provided abbreviated output (e.g., numeric, 10) which, of course, R treated as a non-numeric outcome and could not multiply with the second matrix that was numeric. When I replaced matrix() with as.data.frame(), I managed to get some results, which I thought was great. However, reality had different plans.
While in the manuscript (Testing and Interpreting Latent Variable Interactions Using the
semTools Package) it says that we should use only one form of centering at a time, I'm not really sure if doubleMC functions as it should without mean centering. To demonstrate this, I'll calculate interaction scores using four methods (indi is the modified version of indProd, with as.data.frame instead of matrices): firstly, no centering, secondly, mean centering only, thirdly, doubleMC only, fourthly, doubleMC and mean centering. Not sure if it's just me, but the the size of scores when doubleMC is used without mean centering suggests that initial mean centering was not done. This might be just my interpretation of the code, but the code also suggests that initial mean centering is not done if mean centering is not chosen as T. Does anyone else have similar experience? I do not exclude the possibility that my laptop is trying to sabotage me (it wouldn't be it's first time), so I'd be grateful for any feedback.

Finally, when I thought the largest part of the agony way over and tried to conduct my analysis, I found that after double mean centering I still have correlations above acceptable level (my favorite one is .89) between basic dimensions and interactions they include, just as the version with "single" mean centering (correlation matrices are identical).
So... has anyone else experienced this? As I will have to submit a study relatively soon due to some limitations of my contract, I'd really appreciate if I got some feedback on this, which would allow me to reorganize my work in case this is a bit more complex issue than it initially seemed.
Best regards and thank you in advance,