testlist <- list(read_indices = c(7.10345658387002e+183, NaN, -6.90558603588891e+64, -Inf, 1.69525406917008e-11, -3.2200871813294e+207, 1.87678984938135e-179, 7.6026610522376e-52, -Inf, -4.07827651100228e-125, 1.24680700116839e+68, -2.75820195448307e-295, 5.67556876054047e+224, -3.54964583317729e-194, 1.60096399571375e-198, 4.16403222004086e-243, Inf, -Inf, 4.45587038472864e-209, 3.27437460602372e+270, 1.99018496701793e+90, 7.3743152627684e-288, 3.21584708469381e+236, -4.62773240474319e+76, 50002022.6447766, -6.90295806583465e+295, 0), read_vec = c(-9.9122759758109e-57, -1.64035674249925e-118, 1.05390745649826e+182, 8.05606797801028e-38, -3.84354256622327e+136, 2.36081589563427e-100, 3.01724164497879e-124, 9.57301250646523e+229, -7.99809293195875e-243, 3.06030363511005e-110, 3.27695505950329e-93, -2.10373847983487e+36, -5.29514598795293e-20, 9.81127061830259e+30, -3403.88378037291, -364839.827923978, -8.45393891276032e+179, -4.53552102535884e+269, 3.95634524110619e-268)) result <- do.call(immunarch:::fill_vec,testlist) str(result)