Error en scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : scan() esperaba 'an integer', obtuvo '5.0'

He estado tratando de seguir con mi curso de r, donde delimitamos colClasses, sin embargo cuando meto el codigo datos <-read.table("swirl_temp/inmigintnalpry.csv", header=TRUE, sep=",", fileEncoding = "latin1", colClasses = clases)
R me regresa con el error Error en scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : scan() esperaba 'an integer', obtuvo '5.0'

It seems you have the value 5.0 in a column that should be integers. Can you change the colClass of that column to "numeric"?