I would like to have an opinion on what would be the best approach to speed up a code in R, which uses C++ user-defined functions (func1, func2, func3, func4),
R