Effect of external field on current-induced skyrmion dynamics in a nanowire