testlist <- list(w = c(1.84808576865557e-112, -3.95154071747645e-291, 59587910079.6004, 3.84698617872931e-228, 3.81843731776318e-227, 121.981741870857, NA, -5.93978078204555e-48, 9.28143556085307e+215, -8.19474400967641e+80, 2.59237032895612e-202, 1.0506549579627e-88, 2.07719780277473e+271, -5.75638900632847e-62, 7.73669293614267e+150, -9.11699949365593e-40, -1.40957500956294e-123, 3.88677900215836e+208, -3.1725063384197e+213, 4.00252667959834e+229, 1.1770083988943e+102, -5.93978078204555e-48, NaN, 1.18374581755713e-100, -3.97669356645342e-212, 5.17101944764379e-28, 8.37015717648666e+288, 7.43637818472625e-71, -102156.77463343, 8.05904631563433e-289, 6.56118804651814e-126, NaN, 2.18481510172824e-302, 1.59526109916476e+63, 5.50184748726759e+104, -3.99471091494592e-284, -1.29736460542527e+73, -5.17158677212426e-222, 1.21819607635683e+115, -1.91479486871436e+304, 9.66187058391501e+148, 1.03141830129491e+250, -5.75940999940373e-248, 3.49603170869146e+135, -5.03143221686697e-124, 0), x = c(222072808332850, -1.46715116430199e+138, 1.1171194479417e-265, -16382874066205431808, -8.47124133642136e-277, -1.67329603054265e+297, 1.29002354733637e-118, 3.18167965901451e+41, 5.43787721015614e+113, 3.57355812819996e-84, -1.09278734587823e-121, -4.05672159578517e+111, -7.55877329553432e-79, -1.03558908266831e+35, 2.60391447698233e-32, 1.5435190722032e+266, 2.78014214312921e+22, 1.13577631594531e-46, 2.51368651837326e+168, -2.6106856873732e+286, 8.78437759258949e-103, NaN, -1.62133531328107e+23, 2.63622713507622e+256, -3.15917715314972e+189, -6.22641655069569e+271, -1.12062088143665e+189, 2.273355432858e+65, 1.03225020159028e+293, 1.76177672945976e-202, 1.53729104030388e-212, -4.17441633298632e-131, 8.0171219091402e-214, -6.00029413116818e+79, 3.66519674696538e+63, -3.79195930837313e+259, -3.76612099246025e-53, -1.27472867007692e+266, -3.74100854211703e-26, 31.7353407688246, 3.34968454662565e-220, -1317043053.77334, 2.75205865485095e+189, -1.03558908266831e+35, -1.45528813950161e-11, 6.49102322772634e+218, -2.34369874294674e-281, -2.81573624166847e-124, 1.63681749284561e+192, 7.42482667335327e-163, -1.3049410414332e+138, 2.08142403866764e+74, -1.10939176465621e-88, -9.10476583428155e+200, NaN, 1.286510405675e+92, 4.12476577106888e+185, -1.57872730987992e+72, -6.37406642255468e+68, 2.14719414041773e-46, 3.77748652448848e+20, 4.18701902948215e+130, 3.50406352580649e-128, -1.21189365628082e-29, -9.04562097598919e+160, -2.60216769330127e+255, 4.1422966434697e-262, 2.26681559372426e+219, -1.4034561377896e-164, -42.3610936664236, 4.26664595099624e-195, -1.74665372741393e-135, -4.08822754998649e+80, 0), y = c(-4.11335537419887e-155, -1.10942618092042e+30, -Inf, 2.74828048878615e-40, NA, 1.51336854927179e-241, -7.61174434206174e+141, -8.9629249766e-185, -1.53006089318886e-196, -1.14901060456062e-281, -3.7619862591177e-254, 1.27199508770039e-73, 5.43393812588009e+63, -1.78892892103724e-185, -3.87414467443932e+235, NaN, 6.12886379014269e-176, 4326506492114172, -1.30895563487224e+241, 1.31508189275795e-13, 2.96273790154123e-125, -2.4876152634919e-238, -2.02567323931733e+143, 3.10314095459657e+135, 4.31387770544734e-200, 2.38256674289961e+102, 1.31522503359165e-98, -3.01942420978106e-47, -1.14091049253206e-80, -7.56921550696259e+252, 1.06046203507457e+154, NaN, -1.04096343330556e-164, 7.95515903850017e-243, 1.7797286271361e+204, 1.1120050135628e+136, 5.19170515443209e-121, -4.39178801013061e-292, -2.88879965489979e-241, -1.94644660730236e+183, -8.60074983378269e-108, -1.10886761791564e+300, -2.06110812337717e+266, 7.42013426038929e-283, -4.6003099018317e-88, Inf, 2.68862375162704e+52, 1.22841761858019e-149, 0)) result <- do.call(carSurv::weightedCovarRcpp,testlist) str(result)