# how to test heteroskedasticity of a time series in R?

How can I test heteroskedasticity of a time series in R? I have heard of two tests McLeod.Li.test and bptest (Breusch-Pagan test). Can I use these two tests? and what are the differences and assumptions of these tests if I can use them?

Thanks