testlist <- list(failures = c(-4.89214839241752e-115, -7.50605842882581e-21, NA, 1.4473065854907e-89, -4.05429034788919e+216, 2.8253194566985e+127, -2.06893397531375e-62, 1.28396334786913e-238, -3.02091851478978e-261, 4.63025854416509e-182, 8.4659709048405e+120, -4.07772304141422e+68, 1.37761870285873e-248, -6.80268488068477e+214, -1.52177809395474e+60, NaN, -6.41209149322243e-239, 1.59007129158495e+157, -0.310677295975739, -2.09850699719134e-35, -Inf, 9.92475894733266e+135, -3.4444476354282e-265, -1.13641340561942e-291, 2.43469564905993e+161, -4.59003517526056e-147, 1.53727291424298e-178, 6.58796553774231e+68, 1.40117315387464e-102, 1.57869732444783e+31, -3.14861497857334e-149, -9.24431971704061e-243, -2.23492060031775e-06, -2.46953779685897e+141, -9.91060086798426e-265, 2.09529949559585e+231, 1.39332934928017e+155, -6.02913474443927e+90, -1.3284329334492e-250, -3.63278221901696e-302, 7.04003879951069e-242, -4.09940483711721e-125, -647.23240693974, 3.76051815744054e-52, -4.31927067328045e+200, NaN, -3.54388069123212e+300, 9.81231392851653e+169, 6.86195393707272e+102, -1.20808671823289e-303, 1.57908857945115e+303, -1.641544313471e+57, 9.29857764564462e+74, 1.17222058155502e-71, 0), nsites = 1884349710L, offset = c(-1.85571153066586e+135, 3.72600087841187e-149, 3.14298143204908e-156, 3.63130609329837e+59, -4.13593249155642e+133, 4.21308957950467e+223, -2.68059483634678e-87, -6.81604366964391e+29, -218.136787696263, NaN, 5.5224553833603e-249, -1.19957238738191e-105, 1.96595781631369e-80, -3.42792658870954e+263, -7.35551207084046e+108, -1.18168344070178e-84, 1.25688619386027e+281, 1.15207649658718e+52, -4.95327282637728e+83, -1.03599602509503e+303, -2.24715802714267e+206, -2.09540050720391e+258, 1.76262648366777e+179, -1.02834210559304e+160, 1.14636749970744e-186, 2.80967191303886e+94, -6.33651601266726e+295, -1.6997357116924e+142, 1.11111054562494e+257, -2.34351813942541e+185, 5.41120347245419e+285, 7.2053450652403e+20, -97813447033.5358, 1.95055601234581e+154, 7.68487621054311e-185, NA, -1.60094683615547e+290, -3.46209860550749e-102, -1.99712419946986e-34, 4.95292589040063e+294, 8.68301125277248e-222, 3.4892365531007e-67, -1.21732308621581e+277, -1.69732781756073e+304, 4.53279447855579e+30, 5.86973373779435e+161, -1.59512178803458e+224, -3.47601473409899e+255, -3.61958238154764e+130, -1.19212000266559e-232, 311196355.069919, -2.24623340981203e-306, -4.35264274701621e-23, 1.672631852632e+175, -4.22221661458192e-200, -9.82278188097936e-249, 3.0681897585313e-164, 8.68301125277248e-222, 1.61126340641778e+145, -4.16677627332866e-140, -1.61364173993599e+292, 1.01712268910386e-39, 2.07041853295827e-283, -1.52160458073484e+26, 6.63539644646307e-161, 3.56450538073004e+44, -4.23585255391052e-123, -3.2876912921852e+183, 4.98656830411833e+261, 1.89519949864557e+28, 1.73242477326429e+86, -7.58728678776345e+306, 1.07340129672926e+99, 3.67779254526553e-239, -1.25241332219462e+45, 6.2141854306233e+155, NaN, 5.11068043811196e+151, 8.69637818927662e-238, -4.59291935952744e+93, -1.38651540614101e-272, -4.24487020531722e+232, -86092402882132.1, -6.65740238370932e+72, -8.06283209451282e+188, 3.79093775797622e+216, 0), sigma2 = 1.69388460261036e-46, theta_tune = 1.0911718133046e+184, theta = c(-5.74903721774426e+88, -1.04679192039794e+63, 1.32939743687308e+110, -1.18962424989357e-248, 1.48455713968671e-263, 2.96702775215237e-120, -9.01254692755095e+30, -Inf, 2.75837964612197e-195, 4.19645137706536e+142, -4.10767546077546e-171, 1.169419396101e+100, -1.30937668312901e+62, 4.20445394762244e+32, -1.05349091002769e+290, -4.11070597852903e+131, -9.13083428369435e+290, 5.3109423529489e-103, 6.22368459931225e+269, -6.35017117286498e+254, -3.68398740515781e-298, -2.0982233080985e-107, 6.76614503609204e-245, 7.29315239377448e-277, 1.55921138821875e+61, -4.42654846347763e-178, -1.55134235782726e-132, -8.94068776479736e-22, 5.3700931749518e-192, 4.55179434706631e-285, 7.97107608645554e-129, 1.33930344908771e+303, 7.3258752159437e+78, -1.35884549527611e+191, -1.76396843951252e+240, -1.23638995957451e+27, 6.40341782791988e+150, NA, -4.25843070175708e-121, -5.15913793363669e-89, -Inf, -1.56755933300872e-264, -1.06201778553384e-153, 8.72277561068517e+188, 6.19866564851989e+89, -3.07245333883143e+284, -3.54331622257967e-291, -5.07090191989043e+58, -1.39512150366722e-275, 5.29210685548477e-21, 1.90627250981525e+270, 2.13433144069236e-145, 1.09722543834199e+97, -1.44698182202752e-208, -2.03452921441174e+103, -8.6840708949576e-181, -1.01937584570052e-238, 6.43537635868952e+163, 4.34834985072861e+229, 2.04630820525661e+206, 3.92219527226215e+274, -1.23992954374605e+94, -1.13619219247591e-60, 8.74047359718942e+132, -3.48251402446886e+280, 1.74826496297742e+88, 6.45561961303525e-220, 1.37843692855728e+268, -3.9796158409553e+58, -3.01763876026168e+283, 3.48132117528287e-128, NaN, -2.93871540964541e-57, 0), trials = c(2.16393447051914e-277, 1.88999479894724e+45, -8.331888169116e-241, 3.08059618172229e-46, -1.60722977307449e+183, 1.32055512156755e-206, -5.69292357253092e+156, -4.0161158598189e-232, NA, -3.06610099526159e-78, -9.94011819200522e+98, -1.73494436468127e+39, -1.65006825665547e+45, -2.95783069806541e-155, 9.05473554104237e+25, 3.66562633987563e-90, 1.24855775892575e+282, 1.01971637870186e-196, -1.16063378183954e+158, -9.71540821461367e-106, 4.22188027773551, 6.08439707297799e-138, -1.03565679748278e-88, 3.40001368706725e+202, 4.83703095743845e-86, -5.98276276192869e+53, -9.77769555714421e+301, -1.09583754108191e+52, -1.25743194416212e-245, -5.29417406311355e-159, 5.77619101330173e+40, -4.93305171112005e-129, 3.52015080592245e-186, -2.09189518203433e+142, -14448201306873906, 3.42253305017492e+101, 5.05981864225844e+244, -3.09692214093816e-111, 2.82164576738996e+62, 5.07077923021986e+98, NaN, -1.05829911177891e+92, 2.13141580828969e+296, 1.87426708835782e-279, -7.69426884634815e-228, -4.99521838648998e+266, 3.77890478201622e-136, -1.60722977307449e+183, -1.44241945081869e+69, -5.83469025231198e+174, -1.21725375525094e-163, -1.92678403016977e+197, 1.99734592125264e-146, 7.28641537997776e+203, -2.6136595547955e+243, -Inf, 0), y = c(-5.20668774929971e+148, 3.13115020658364e+206, 1.25817004153324e+255, -8.59628577353551e-191, -2.70075233830511e-182, -8608839196761.44, -6.08003725063066e+84, -1.67987493875161e-15, 2.29990199140323e+301, -2.62427265782784e+246, 7.25473240283171e+114, 8.13574638434377e+76, NA, -8.89842594758122e-269, -1.02430483921737e+291, -3.77678743305559e-87, NA, 6.79964809379792e-168, -1.92396702884965e+110, 9.72197619525622e-205, -1.59909825189177e-289, -5.15056314684684e+290, -Inf, -5.00225746628518e+37, -2.44529324426074e+276, NA, 3.5740345177174e-125, -1.02806029553464e+147, -9.95775770190247e+81, 6.65067187460368e+190, -9.82943339671062e-129, -2.03588031791777e-209, -1.67820699131262e+46, -1.54529957399808e+210, -1.06202936195721e-230, 1.3368178247282e-72, -4.3704757689352e-57, -3.40395984843985e+144, 1.77545352804002e-35, 1.57104655131728e-209, -4.99812965243201e-34, -3.7639149539664e-297, -4.51717513083116e-306, 3.48177256755637e-220, -2.5313081345543e+181, -5.58936382037552e+58, -1.8603034164683e-248, -5.53244958257742e+61, -1.01225013307629e+95, 1.69402347883464e+296, 4.06271746959962e-260, 1.45560650067621e-19, -1.11335474191143e-231, 3.17250677962281e+140, -5.09523857333006e+257, 8501028805552610, -2.03956569925397e-157, 3.87013292435128e+227, -2.22971793859735e+219, -0.00129290956443609, -2.26794127454166e+279, 5.89533697973654e+232, -7.08914981996126e+43, -4.92520537736892e-209, -1.75625907788702e+116, -9.9569719473958e+211, 2.25973605789923e+203, 1.01782839575009e-126, 9.81452502800071e+300, 9.62449037852654e-261, 1.7914935602914e-209, 2.75517037928404e+91, -4.46272917312211e-127, 4.46313600339529e+291, 3.83011899075909e-281, -0.0101128235341986, 0)) result <- do.call(CARBayes:::binomialindepupdateMALA,testlist) str(result)