Cheers!
In "forecast" package the test of autocorrelation of residuals is Breusch-Godfrey for time series linear models, and Ljung-Box for ARIMA.
In