SAMME.R implementation

Don't understand. The code fragments are identical except for the newline position.