Running ‘testthat.R’ [100s/110s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(prophet)
  Loading required package: Rcpp
  > 
  > test_check("prophet")
  Initial log joint probability = -2.90704
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.73076
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.71347
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.92862
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.92862
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -4.03626
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -4.00569
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -4.02867
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.90704
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -3.00667
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.92862
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -2.90704
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.37743
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.41915
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.37743
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.41915
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.90704
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.37293
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.36987
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.39379
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.73076
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.71347
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.92862
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -7.65012
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -7.65012
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -7.65012
  Optimization terminated with error: 
    Line search failed to achieve a sufficient decrease, no more progress can be made
  Initial log joint probability = -7.28986
  Optimization terminated with error: 
    Line search failed to achieve a sufficient decrease, no more progress can be made
  Initial log joint probability = -8.68627
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  
  Initial log joint probability = -212.902
  Iteration  1. Log joint probability =    160.265. Improved by 373.168.
  Iteration  2. Log joint probability =    292.893. Improved by 132.628.
  Iteration  3. Log joint probability =    292.908. Improved by 0.0149839.
  Iteration  4. Log joint probability =    292.955. Improved by 0.0469687.
  Iteration  5. Log joint probability =    292.978. Improved by 0.0228419.
  Iteration  6. Log joint probability =    293.149. Improved by 0.171519.
  Iteration  7. Log joint probability =    293.286. Improved by 0.136264.
  Iteration  8. Log joint probability =    293.337. Improved by 0.0515725.
  Iteration  9. Log joint probability =    293.426. Improved by 0.0886737.
  Iteration 10. Log joint probability =    293.473. Improved by 0.0467924.
  Iteration 11. Log joint probability =    293.561. Improved by 0.0883539.
  Iteration 12. Log joint probability =    293.596. Improved by 0.0351442.
  Iteration 13. Log joint probability =      293.7. Improved by 0.103248.
  Iteration 14. Log joint probability =    293.719. Improved by 0.0191003.
  Iteration 15. Log joint probability =    293.841. Improved by 0.12245.
  Iteration 16. Log joint probability =    325.129. Improved by 31.2875.
  Iteration 17. Log joint probability =    325.156. Improved by 0.0274493.
  Iteration 18. Log joint probability =    325.165. Improved by 0.00934476.
  Iteration 19. Log joint probability =    325.171. Improved by 0.00554455.
  Iteration 20. Log joint probability =    325.186. Improved by 0.0153558.
  Iteration 21. Log joint probability =    325.422. Improved by 0.235847.
  Iteration 22. Log joint probability =    325.547. Improved by 0.12532.
  Iteration 23. Log joint probability =    325.664. Improved by 0.116103.
  Iteration 24. Log joint probability =    325.841. Improved by 0.177295.
  Iteration 25. Log joint probability =    326.469. Improved by 0.628556.
  Iteration 26. Log joint probability =    327.271. Improved by 0.801602.
  Iteration 27. Log joint probability =    327.806. Improved by 0.534558.
  Iteration 28. Log joint probability =    327.935. Improved by 0.129746.
  Iteration 29. Log joint probability =    328.017. Improved by 0.0813121.
  Iteration 30. Log joint probability =    328.098. Improved by 0.0818669.
  Iteration 31. Log joint probability =    328.452. Improved by 0.353531.
  Iteration 32. Log joint probability =    328.576. Improved by 0.124253.
  Iteration 33. Log joint probability =    328.674. Improved by 0.0979042.
  Iteration 34. Log joint probability =    328.685. Improved by 0.0109142.
  Iteration 35. Log joint probability =    329.642. Improved by 0.957165.
  Iteration 36. Log joint probability =    330.322. Improved by 0.680233.
  Iteration 37. Log joint probability =    330.344. Improved by 0.0216806.
  Iteration 38. Log joint probability =    331.157. Improved by 0.812365.
  Iteration 39. Log joint probability =    331.187. Improved by 0.0309185.
  Iteration 40. Log joint probability =    331.835. Improved by 0.648028.
  Iteration 41. Log joint probability =    332.037. Improved by 0.201191.
  Iteration 42. Log joint probability =    333.864. Improved by 1.82687.
  Iteration 43. Log joint probability =    335.198. Improved by 1.33426.
  Iteration 44. Log joint probability =     336.07. Improved by 0.872609.
  Iteration 45. Log joint probability =    336.301. Improved by 0.230272.
  Iteration 46. Log joint probability =    336.777. Improved by 0.476452.
  Iteration 47. Log joint probability =    343.735. Improved by 6.95777.
  Iteration 48. Log joint probability =    343.744. Improved by 0.00875891.
  Iteration 49. Log joint probability =    344.076. Improved by 0.331913.
  Iteration 50. Log joint probability =    344.251. Improved by 0.175235.
  Iteration 51. Log joint probability =    346.001. Improved by 1.74994.
  Iteration 52. Log joint probability =     346.22. Improved by 0.218879.
  Iteration 53. Log joint probability =    347.816. Improved by 1.59603.
  Iteration 54. Log joint probability =    348.081. Improved by 0.265277.
  Iteration 55. Log joint probability =    349.219. Improved by 1.1377.
  Iteration 56. Log joint probability =    350.253. Improved by 1.03479.
  Iteration 57. Log joint probability =    351.274. Improved by 1.02008.
  Iteration 58. Log joint probability =    352.752. Improved by 1.47874.
  Iteration 59. Log joint probability =    352.846. Improved by 0.0937047.
  Iteration 60. Log joint probability =     353.12. Improved by 0.274236.
  Iteration 61. Log joint probability =    354.623. Improved by 1.50286.
  Iteration 62. Log joint probability =    354.682. Improved by 0.059012.
  Iteration 63. Log joint probability =    354.707. Improved by 0.0250737.
  Iteration 64. Log joint probability =    355.084. Improved by 0.377209.
  Iteration 65. Log joint probability =    355.131. Improved by 0.0471563.
  Iteration 66. Log joint probability =    355.562. Improved by 0.430555.
  Iteration 67. Log joint probability =    355.611. Improved by 0.0485024.
  Iteration 68. Log joint probability =    356.267. Improved by 0.656638.
  Iteration 69. Log joint probability =    356.528. Improved by 0.260655.
  Iteration 70. Log joint probability =    357.435. Improved by 0.907025.
  Iteration 71. Log joint probability =    357.472. Improved by 0.0370837.
  Iteration 72. Log joint probability =    358.076. Improved by 0.603879.
  Iteration 73. Log joint probability =    358.178. Improved by 0.1021.
  Iteration 74. Log joint probability =    358.252. Improved by 0.073893.
  Iteration 75. Log joint probability =    358.259. Improved by 0.00737007.
  Iteration 76. Log joint probability =    359.501. Improved by 1.24157.
  Iteration 77. Log joint probability =    360.625. Improved by 1.1239.
  Iteration 78. Log joint probability =    361.185. Improved by 0.559907.
  Iteration 79. Log joint probability =     361.22. Improved by 0.0349495.
  Iteration 80. Log joint probability =    361.994. Improved by 0.774562.
  Iteration 81. Log joint probability =    362.296. Improved by 0.302264.
  Iteration 82. Log joint probability =    363.014. Improved by 0.71789.
  Iteration 83. Log joint probability =    363.018. Improved by 0.0034285.
  Iteration 84. Log joint probability =    363.314. Improved by 0.296634.
  Iteration 85. Log joint probability =    364.252. Improved by 0.937711.
  Iteration 86. Log joint probability =    370.597. Improved by 6.34543.
  Iteration 87. Log joint probability =    370.988. Improved by 0.39035.
  Iteration 88. Log joint probability =    371.085. Improved by 0.0968465.
  Iteration 89. Log joint probability =    371.109. Improved by 0.0241666.
  Iteration 90. Log joint probability =    371.177. Improved by 0.0678862.
  Iteration 91. Log joint probability =    378.748. Improved by 7.57087.
  Iteration 92. Log joint probability =    378.757. Improved by 0.00972879.
  Iteration 93. Log joint probability =    378.795. Improved by 0.037319.
  Iteration 94. Log joint probability =    380.554. Improved by 1.75961.
  Iteration 95. Log joint probability =    380.588. Improved by 0.0337407.
  Iteration 96. Log joint probability =    384.059. Improved by 3.47088.
  Iteration 97. Log joint probability =    387.509. Improved by 3.44971.
  Iteration 98. Log joint probability =    387.742. Improved by 0.233561.
  Iteration 99. Log joint probability =    387.884. Improved by 0.141721.
  Iteration 100. Log joint probability =    387.919. Improved by 0.0353451.
  Iteration 101. Log joint probability =    388.636. Improved by 0.71672.
  Iteration 102. Log joint probability =    388.724. Improved by 0.0876601.
  Iteration 103. Log joint probability =    388.734. Improved by 0.0102238.
  Iteration 104. Log joint probability =    391.055. Improved by 2.32124.
  Iteration 105. Log joint probability =    391.125. Improved by 0.0695686.
  Iteration 106. Log joint probability =    391.149. Improved by 0.0241214.
  Iteration 107. Log joint probability =    391.231. Improved by 0.0823215.
  Iteration 108. Log joint probability =    391.565. Improved by 0.334103.
  Iteration 109. Log joint probability =    394.455. Improved by 2.88957.
  Iteration 110. Log joint probability =    396.165. Improved by 1.71012.
  Iteration 111. Log joint probability =    396.728. Improved by 0.562734.
  Iteration 112. Log joint probability =    396.768. Improved by 0.0405935.
  Iteration 113. Log joint probability =    396.781. Improved by 0.0124204.
  Iteration 114. Log joint probability =    396.909. Improved by 0.128013.
  Iteration 115. Log joint probability =    396.916. Improved by 0.00716831.
  Iteration 116. Log joint probability =     397.05. Improved by 0.134505.
  Iteration 117. Log joint probability =    397.577. Improved by 0.527161.
  Iteration 118. Log joint probability =    404.694. Improved by 7.11707.
  Iteration 119. Log joint probability =    406.163. Improved by 1.46889.
  Iteration 120. Log joint probability =    411.263. Improved by 5.10009.
  Iteration 121. Log joint probability =    411.289. Improved by 0.0257784.
  Iteration 122. Log joint probability =     411.42. Improved by 0.130982.
  Iteration 123. Log joint probability =    411.822. Improved by 0.40138.
  Iteration 124. Log joint probability =    411.832. Improved by 0.0105741.
  Iteration 125. Log joint probability =    411.835. Improved by 0.00286162.
  Iteration 126. Log joint probability =    412.089. Improved by 0.253564.
  Iteration 127. Log joint probability =    413.862. Improved by 1.77365.
  Iteration 128. Log joint probability =    414.855. Improved by 0.992748.
  Iteration 129. Log joint probability =    416.185. Improved by 1.3296.
  Iteration 130. Log joint probability =    416.259. Improved by 0.0746475.
  Iteration 131. Log joint probability =    416.392. Improved by 0.132304.
  Iteration 132. Log joint probability =    416.629. Improved by 0.237113.
  Iteration 133. Log joint probability =    416.653. Improved by 0.0238728.
  Iteration 134. Log joint probability =    417.042. Improved by 0.389208.
  Iteration 135. Log joint probability =    417.141. Improved by 0.0991776.
  Iteration 136. Log joint probability =    417.233. Improved by 0.0919995.
  Iteration 137. Log joint probability =    417.273. Improved by 0.0397105.
  Iteration 138. Log joint probability =    417.298. Improved by 0.0258451.
  Iteration 139. Log joint probability =    417.314. Improved by 0.0155352.
  Iteration 140. Log joint probability =     417.33. Improved by 0.0159355.
  Iteration 141. Log joint probability =    417.348. Improved by 0.0178603.
  Iteration 142. Log joint probability =    417.355. Improved by 0.00679756.
  Iteration 143. Log joint probability =    417.358. Improved by 0.00330987.
  Iteration 144. Log joint probability =    417.361. Improved by 0.00327313.
  Iteration 145. Log joint probability =    417.364. Improved by 0.00250467.
  Iteration 146. Log joint probability =    417.365. Improved by 0.00113844.
  Iteration 147. Log joint probability =    417.366. Improved by 0.00125143.
  Iteration 148. Log joint probability =    417.367. Improved by 0.000488418.
  Iteration 149. Log joint probability =    417.368. Improved by 0.00108441.
  Iteration 150. Log joint probability =    417.368. Improved by 0.000674514.
  Iteration 151. Log joint probability =    417.369. Improved by 0.000497523.
  Iteration 152. Log joint probability =    417.369. Improved by 0.000319334.
  Iteration 153. Log joint probability =    417.369. Improved by 0.000336285.
  Iteration 154. Log joint probability =     417.37. Improved by 0.000389908.
  Iteration 155. Log joint probability =     417.37. Improved by 0.000167415.
  Iteration 156. Log joint probability =     417.37. Improved by 7.01143e-05.
  Iteration 157. Log joint probability =     417.37. Improved by 0.000193758.
  Iteration 158. Log joint probability =     417.37. Improved by 5.34666e-05.
  Iteration 159. Log joint probability =     417.37. Improved by 9.83657e-05.
  Iteration 160. Log joint probability =    417.371. Improved by 4.40096e-05.
  Iteration 161. Log joint probability =    417.371. Improved by 3.07536e-05.
  Iteration 162. Log joint probability =    417.371. Improved by 3.10272e-05.
  Iteration 163. Log joint probability =    417.371. Improved by 7.7877e-05.
  Iteration 164. Log joint probability =    417.371. Improved by 2.34825e-05.
  Iteration 165. Log joint probability =    417.371. Improved by 4.05771e-05.
  Iteration 166. Log joint probability =    417.371. Improved by 1.75893e-05.
  Iteration 167. Log joint probability =    417.371. Improved by 4.86619e-06.
  Iteration 168. Log joint probability =    417.371. Improved by 4.09577e-06.
  Iteration 169. Log joint probability =    417.371. Improved by 3.24096e-06.
  Iteration 170. Log joint probability =    417.371. Improved by 2.09386e-06.
  Iteration 171. Log joint probability =    417.371. Improved by 1.24456e-06.
  Iteration 172. Log joint probability =    417.371. Improved by 1.80047e-06.
  Iteration 173. Log joint probability =    417.371. Improved by 7.91035e-07.
  Iteration 174. Log joint probability =    417.371. Improved by 3.54593e-07.
  Iteration 175. Log joint probability =    417.371. Improved by 3.81273e-07.
  Iteration 176. Log joint probability =    417.371. Improved by 4.4351e-07.
  Iteration 177. Log joint probability =    417.371. Improved by 3.13035e-07.
  Iteration 178. Log joint probability =    417.371. Improved by 5.65395e-08.
  Iteration 179. Log joint probability =    417.371. Improved by 5.73357e-08.
  Iteration 180. Log joint probability =    417.371. Improved by 3.17428e-07.
  Iteration 181. Log joint probability =    417.371. Improved by 2.47546e-07.
  Iteration 182. Log joint probability =    417.371. Improved by 1.04716e-07.
  Iteration 183. Log joint probability =    417.371. Improved by 4.84185e-08.
  Iteration 184. Log joint probability =    417.371. Improved by 2.67401e-08.
  Iteration 185. Log joint probability =    417.371. Improved by 7.98303e-08.
  Iteration 186. Log joint probability =    417.371. Improved by 4.88178e-08.
  Iteration 187. Log joint probability =    417.371. Improved by 9.9966e-09.
  
  Initial log joint probability = -212.902
  Iteration  1. Log joint probability =    160.265. Improved by 373.168.
  Iteration  2. Log joint probability =    292.893. Improved by 132.628.
  Iteration  3. Log joint probability =    292.908. Improved by 0.0149839.
  Iteration  4. Log joint probability =    292.955. Improved by 0.0469686.
  Iteration  5. Log joint probability =    292.978. Improved by 0.0228419.
  Iteration  6. Log joint probability =    293.149. Improved by 0.171519.
  Iteration  7. Log joint probability =    293.286. Improved by 0.136264.
  Iteration  8. Log joint probability =    293.337. Improved by 0.0515725.
  Iteration  9. Log joint probability =    293.426. Improved by 0.0886737.
  Iteration 10. Log joint probability =    293.473. Improved by 0.0467924.
  Iteration 11. Log joint probability =    293.561. Improved by 0.0883539.
  Iteration 12. Log joint probability =    293.596. Improved by 0.0351441.
  Iteration 13. Log joint probability =      293.7. Improved by 0.103248.
  Iteration 14. Log joint probability =    293.719. Improved by 0.0191003.
  Iteration 15. Log joint probability =    293.841. Improved by 0.12245.
  Iteration 16. Log joint probability =    325.129. Improved by 31.2875.
  Iteration 17. Log joint probability =    325.156. Improved by 0.0274493.
  Iteration 18. Log joint probability =    325.165. Improved by 0.00934473.
  Iteration 19. Log joint probability =    325.171. Improved by 0.00554455.
  Iteration 20. Log joint probability =    325.186. Improved by 0.0153559.
  Iteration 21. Log joint probability =    325.422. Improved by 0.235846.
  Iteration 22. Log joint probability =    325.547. Improved by 0.12532.
  Iteration 23. Log joint probability =    325.664. Improved by 0.116103.
  Iteration 24. Log joint probability =    325.841. Improved by 0.177295.
  Iteration 25. Log joint probability =    326.469. Improved by 0.628554.
  Iteration 26. Log joint probability =    327.271. Improved by 0.801604.
  Iteration 27. Log joint probability =    327.806. Improved by 0.534557.
  Iteration 28. Log joint probability =    327.935. Improved by 0.129695.
  Iteration 29. Log joint probability =    328.017. Improved by 0.0813659.
  Iteration 30. Log joint probability =    328.098. Improved by 0.0817355.
  Iteration 31. Log joint probability =    328.452. Improved by 0.353649.
  Iteration 32. Log joint probability =    328.576. Improved by 0.124147.
  Iteration 33. Log joint probability =    328.674. Improved by 0.0982042.
  Iteration 34. Log joint probability =    328.685. Improved by 0.0106142.
  Iteration 35. Log joint probability =    329.642. Improved by 0.957179.
  Iteration 36. Log joint probability =     329.69. Improved by 0.0476948.
  Iteration 37. Log joint probability =    330.275. Improved by 0.584654.
  Iteration 38. Log joint probability =    331.637. Improved by 1.36228.
  Iteration 39. Log joint probability =    331.642. Improved by 0.00552895.
  Iteration 40. Log joint probability =    331.684. Improved by 0.0420126.
  Iteration 41. Log joint probability =    331.695. Improved by 0.0105008.
  Iteration 42. Log joint probability =    332.526. Improved by 0.83079.
  Iteration 43. Log joint probability =    332.929. Improved by 0.403834.
  Iteration 44. Log joint probability =    333.286. Improved by 0.356997.
  Iteration 45. Log joint probability =      337.3. Improved by 4.01394.
  Iteration 46. Log joint probability =    346.404. Improved by 9.10344.
  Iteration 47. Log joint probability =    348.392. Improved by 1.98783.
  Iteration 48. Log joint probability =    351.685. Improved by 3.29366.
  Iteration 49. Log joint probability =    352.923. Improved by 1.23731.
  Iteration 50. Log joint probability =    355.477. Improved by 2.55422.
  Iteration 51. Log joint probability =    358.658. Improved by 3.181.
  Iteration 52. Log joint probability =    363.773. Improved by 5.11538.
  Iteration 53. Log joint probability =    364.041. Improved by 0.267317.
  Iteration 54. Log joint probability =    368.568. Improved by 4.52716.
  Iteration 55. Log joint probability =    368.602. Improved by 0.0345591.
  Iteration 56. Log joint probability =    368.644. Improved by 0.0412992.
  Iteration 57. Log joint probability =    370.818. Improved by 2.17464.
  Iteration 58. Log joint probability =    370.855. Improved by 0.0371197.
  Iteration 59. Log joint probability =    370.935. Improved by 0.0797878.
  Iteration 60. Log joint probability =    371.096. Improved by 0.160781.
  Iteration 61. Log joint probability =    371.163. Improved by 0.0669198.
  Iteration 62. Log joint probability =    371.582. Improved by 0.419562.
  Iteration 63. Log joint probability =    371.603. Improved by 0.0205197.
  Iteration 64. Log joint probability =    371.792. Improved by 0.189187.
  Iteration 65. Log joint probability =    371.881. Improved by 0.0887755.
  Iteration 66. Log joint probability =    373.337. Improved by 1.45584.
  Iteration 67. Log joint probability =    373.371. Improved by 0.034627.
  Iteration 68. Log joint probability =    373.378. Improved by 0.00705789.
  Iteration 69. Log joint probability =    373.455. Improved by 0.0770778.
  Iteration 70. Log joint probability =    373.622. Improved by 0.166171.
  Iteration 71. Log joint probability =    373.663. Improved by 0.0412884.
  Iteration 72. Log joint probability =    373.738. Improved by 0.0752966.
  Iteration 73. Log joint probability =    373.753. Improved by 0.0147453.
  Iteration 74. Log joint probability =    374.011. Improved by 0.258029.
  Iteration 75. Log joint probability =    374.045. Improved by 0.033555.
  Iteration 76. Log joint probability =    374.303. Improved by 0.258872.
  Iteration 77. Log joint probability =     374.33. Improved by 0.0262346.
  Iteration 78. Log joint probability =    374.614. Improved by 0.284805.
  Iteration 79. Log joint probability =    374.661. Improved by 0.0462466.
  Iteration 80. Log joint probability =    374.784. Improved by 0.123617.
  Iteration 81. Log joint probability =    383.223. Improved by 8.43872.
  Iteration 82. Log joint probability =    383.252. Improved by 0.0292597.
  Iteration 83. Log joint probability =    390.108. Improved by 6.85538.
  Iteration 84. Log joint probability =    390.141. Improved by 0.03328.
  Iteration 85. Log joint probability =     390.24. Improved by 0.098588.
  Iteration 86. Log joint probability =    392.469. Improved by 2.22946.
  Iteration 87. Log joint probability =    392.475. Improved by 0.00599524.
  Iteration 88. Log joint probability =    392.605. Improved by 0.130065.
  Iteration 89. Log joint probability =    392.765. Improved by 0.16043.
  Iteration 90. Log joint probability =    393.272. Improved by 0.506777.
  Iteration 91. Log joint probability =    394.702. Improved by 1.43013.
  Iteration 92. Log joint probability =    398.062. Improved by 3.3595.
  Iteration 93. Log joint probability =    398.087. Improved by 0.024937.
  Iteration 94. Log joint probability =    398.097. Improved by 0.0102817.
  Iteration 95. Log joint probability =    398.111. Improved by 0.0138177.
  Iteration 96. Log joint probability =    398.147. Improved by 0.0361736.
  Iteration 97. Log joint probability =    399.324. Improved by 1.17679.
  Iteration 98. Log joint probability =    399.905. Improved by 0.580992.
  Iteration 99. Log joint probability =    401.147. Improved by 1.24232.
  Iteration 100. Log joint probability =    402.603. Improved by 1.45568.
  Iteration 101. Log joint probability =    402.933. Improved by 0.329944.
  Iteration 102. Log joint probability =    402.964. Improved by 0.0308102.
  Iteration 103. Log joint probability =    403.002. Improved by 0.0381656.
  Iteration 104. Log joint probability =     404.38. Improved by 1.37813.
  Iteration 105. Log joint probability =    405.286. Improved by 0.905583.
  Iteration 106. Log joint probability =    407.426. Improved by 2.14064.
  Iteration 107. Log joint probability =    411.789. Improved by 4.36235.
  Iteration 108. Log joint probability =    411.795. Improved by 0.00610933.
  Iteration 109. Log joint probability =    413.176. Improved by 1.38171.
  Iteration 110. Log joint probability =    413.882. Improved by 0.705523.
  Iteration 111. Log joint probability =    414.926. Improved by 1.04415.
  Iteration 112. Log joint probability =    414.953. Improved by 0.0272301.
  Iteration 113. Log joint probability =    414.984. Improved by 0.0303324.
  Iteration 114. Log joint probability =    415.101. Improved by 0.11698.
  Iteration 115. Log joint probability =    415.119. Improved by 0.0181042.
  Iteration 116. Log joint probability =    415.121. Improved by 0.00270823.
  Iteration 117. Log joint probability =    416.911. Improved by 1.79.
  Iteration 118. Log joint probability =    417.549. Improved by 0.637369.
  Iteration 119. Log joint probability =    417.826. Improved by 0.277341.
  Iteration 120. Log joint probability =    417.947. Improved by 0.121083.
  Iteration 121. Log joint probability =    417.999. Improved by 0.0519725.
  Iteration 122. Log joint probability =    418.037. Improved by 0.0375271.
  Iteration 123. Log joint probability =     418.04. Improved by 0.0028515.
  Iteration 124. Log joint probability =    418.052. Improved by 0.0124969.
  Iteration 125. Log joint probability =    418.061. Improved by 0.00867684.
  Iteration 126. Log joint probability =    418.073. Improved by 0.0121482.
  Iteration 127. Log joint probability =    418.075. Improved by 0.00244494.
  Iteration 128. Log joint probability =    418.077. Improved by 0.0014437.
  Iteration 129. Log joint probability =     418.08. Improved by 0.00328951.
  Iteration 130. Log joint probability =    418.082. Improved by 0.0024498.
  Iteration 131. Log joint probability =    418.084. Improved by 0.00140363.
  Iteration 132. Log joint probability =    418.084. Improved by 0.00059519.
  Iteration 133. Log joint probability =    418.085. Improved by 0.000688936.
  Iteration 134. Log joint probability =    418.087. Improved by 0.00197245.
  Iteration 135. Log joint probability =    418.088. Improved by 0.000874477.
  Iteration 136. Log joint probability =    418.088. Improved by 0.000339249.
  Iteration 137. Log joint probability =    418.089. Improved by 0.000446607.
  Iteration 138. Log joint probability =    418.089. Improved by 0.000156215.
  Iteration 139. Log joint probability =    418.089. Improved by 0.0001234.
  Iteration 140. Log joint probability =    418.089. Improved by 4.18347e-05.
  Iteration 141. Log joint probability =    418.089. Improved by 0.000150998.
  Iteration 142. Log joint probability =    418.089. Improved by 0.000132014.
  Iteration 143. Log joint probability =    418.089. Improved by 1.03456e-05.
  Iteration 144. Log joint probability =    418.089. Improved by 9.5894e-05.
  Iteration 145. Log joint probability =     418.09. Improved by 4.53337e-05.
  Iteration 146. Log joint probability =     418.09. Improved by 2.97346e-05.
  Iteration 147. Log joint probability =     418.09. Improved by 5.23966e-06.
  Iteration 148. Log joint probability =     418.09. Improved by 4.73683e-05.
  Iteration 149. Log joint probability =     418.09. Improved by 6.43334e-06.
  Iteration 150. Log joint probability =     418.09. Improved by 1.40226e-05.
  Iteration 151. Log joint probability =     418.09. Improved by 7.65517e-06.
  Iteration 152. Log joint probability =     418.09. Improved by 7.09488e-06.
  Iteration 153. Log joint probability =     418.09. Improved by 5.30524e-06.
  Iteration 154. Log joint probability =     418.09. Improved by 3.34974e-06.
  Iteration 155. Log joint probability =     418.09. Improved by 8.80286e-06.
  Iteration 156. Log joint probability =     418.09. Improved by 8.17544e-06.
  Iteration 157. Log joint probability =     418.09. Improved by 9.03667e-06.
  Iteration 158. Log joint probability =     418.09. Improved by 1.02917e-05.
  Iteration 159. Log joint probability =     418.09. Improved by 9.4416e-06.
  Iteration 160. Log joint probability =     418.09. Improved by 5.2897e-06.
  Iteration 161. Log joint probability =     418.09. Improved by 6.46656e-06.
  Iteration 162. Log joint probability =     418.09. Improved by 5.88959e-06.
  Iteration 163. Log joint probability =     418.09. Improved by 4.5224e-06.
  Iteration 164. Log joint probability =     418.09. Improved by 2.5118e-07.
  Iteration 165. Log joint probability =     418.09. Improved by 1.73733e-06.
  Iteration 166. Log joint probability =     418.09. Improved by 8.27384e-07.
  Iteration 167. Log joint probability =     418.09. Improved by 1.87277e-06.
  Iteration 168. Log joint probability =     418.09. Improved by 2.10363e-07.
  Iteration 169. Log joint probability =     418.09. Improved by 5.49324e-07.
  Iteration 170. Log joint probability =     418.09. Improved by 5.90113e-07.
  Iteration 171. Log joint probability =     418.09. Improved by 3.61811e-07.
  Iteration 172. Log joint probability =     418.09. Improved by 1.06442e-07.
  Iteration 173. Log joint probability =     418.09. Improved by 1.49004e-07.
  Iteration 174. Log joint probability =     418.09. Improved by 1.57123e-07.
  Iteration 175. Log joint probability =     418.09. Improved by 2.28593e-07.
  Iteration 176. Log joint probability =     418.09. Improved by 1.25463e-07.
  Iteration 177. Log joint probability =     418.09. Improved by 1.19144e-07.
  Iteration 178. Log joint probability =     418.09. Improved by 4.10218e-08.
  Iteration 179. Log joint probability =     418.09. Improved by 1.96518e-08.
  Iteration 180. Log joint probability =     418.09. Improved by 4.49523e-09.
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -7.85237
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -2.06012
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.03717
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -2.03717
  Optimization terminated with error: 
    Line search failed to achieve a sufficient decrease, no more progress can be made
  Initial log joint probability = -3.94349
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -8.80928
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -8.80928
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -95.784
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -31.1159
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -31.1159
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -95.784
  Optimization terminated normally: 
    Convergence detected: absolute parameter change was below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -95.784
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Initial log joint probability = -15.5191
  Optimization terminated normally: 
    Convergence detected: relative gradient magnitude is below tolerance
  Error in file(fname, "rt") : cannot open the connection
  DIAGNOSTIC(S) FROM PARSER:
  Info: left-hand side variable (name=cp_idx) occurs on right-hand side of assignment, causing inefficient deep copy to avoid aliasing.
  Info: left-hand side variable (name=m_pr) occurs on right-hand side of assignment, causing inefficient deep copy to avoid aliasing.
  
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Core:531:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:2:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/LU:47:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Cholesky:12:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Jacobi:29:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Cholesky:43:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:4:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/QR:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Householder:27:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:5:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/SVD:48:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:6:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Geometry:58:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Dense:7:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Eigenvalues:58:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:31:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Sparse:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/SparseCore:66:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:31:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Sparse:27:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/OrderingMethods:71:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:31:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Sparse:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/SparseCholesky:43:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:31:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Sparse:32:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/SparseQR:35:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:31:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/Sparse:33:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/IterativeLinearSolvers:46:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:32:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/CholmodSupport:45:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:35:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:39:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/Polynomials:135:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:3:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/RcppEigenForward.h:40:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/SparseExtra:51:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:309:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/prob/multinomial_rng.hpp:10:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal/prob/binomial_rng.hpp:10:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/random/binomial_distribution.hpp:407:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
          struct {
          ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:34:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/static_rational.hpp:166:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:35:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/dimension.hpp:21:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/dimension_list.hpp:125:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:35:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/dimension.hpp:21:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/dimension_list.hpp:131:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/dimensionless_type.hpp:49:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:39:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/linear_algebra.hpp:20:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/dim.hpp:75:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:40:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/unscale.hpp:28:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/scale.hpp:139:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:20:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/heterogeneous_system.hpp:120:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/detail/conversion_impl.hpp:21:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/homogeneous_system.hpp:99:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:44:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/units/quantity.hpp:495:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/typeof/typeof.hpp:196:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file415d6625a1c2.cpp:8:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math.hpp:4:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/rev/mat.hpp:12:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat.hpp:325:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/arr.hpp:49:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal.hpp:316:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal/prob/neg_binomial_2_ccdf_log.hpp:5:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal/prob/neg_binomial_2_lccdf.hpp:11:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal/prob/neg_binomial_ccdf_log.hpp:5:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/scal/prob/neg_binomial_lccdf.hpp:24:
  In file included from /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/random/negative_binomial_distribution.hpp:21:
  /tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include/boost/random/poisson_distribution.hpp:338:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
          struct {
          ^
  file415d6625a1c2.cpp:34:1: error: unknown type name 'matrix_d'; did you mean 'stan::math::matrix_d'?
  matrix_d
  ^~~~~~~~
  stan::math::matrix_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:19:63: note: 'stan::math::matrix_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> matrix_d;
                                                                ^
  file415d6625a1c2.cpp:35:30: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
  get_changepoint_matrix(const vector_d& t,
                               ^~~~~~~~
                               stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:36:34: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                             const vector_d& t_change,
                                   ^~~~~~~~
                                   stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:93:9: error: unknown type name 'matrix_d'; did you mean 'stan::math::matrix_d'?
          matrix_d
          ^~~~~~~~
          stan::math::matrix_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:19:63: note: 'stan::math::matrix_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> matrix_d;
                                                                ^
  file415d6625a1c2.cpp:94:22: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
      operator()(const vector_d& t,
                       ^~~~~~~~
                       stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:95:34: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                             const vector_d& t_change,
                                   ^~~~~~~~
                                   stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:102:1: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
  vector_d
  ^~~~~~~~
  stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:105:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& delta,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:106:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& t_change,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:155:9: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
          vector_d
          ^~~~~~~~
          stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:158:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& delta,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:159:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& t_change,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:165:1: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
  vector_d
  ^~~~~~~~
  stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:168:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& delta,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:169:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& t,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:170:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& cap,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:171:26: error: unknown type name 'matrix_d'; did you mean 'stan::math::matrix_d'?
                     const matrix_d& A,
                           ^~~~~~~~
                           stan::math::matrix_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:19:63: note: 'stan::math::matrix_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> matrix_d;
                                                                ^
  file415d6625a1c2.cpp:172:26: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
                     const vector_d& t_change,
                           ^~~~~~~~
                           stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  file415d6625a1c2.cpp:204:9: error: unknown type name 'vector_d'; did you mean 'stan::math::vector_d'?
          vector_d
          ^~~~~~~~
          stan::math::vector_d
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/stan/math/prim/mat/fun/typedefs.hpp:24:50: note: 'stan::math::vector_d' declared here
  typedef Eigen::Matrix<double, Eigen::Dynamic, 1> vector_d;
                                                   ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  27 warnings and 20 errors generated.
  make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:166: file415d6625a1c2.o] Error 1
  make[1]: Entering directory '/tmp/Rtmph6gjzd/sourceCpp-x86_64-pc-linux-gnu-0.12.19/sourcecpp_415d6704a771'
  clang++-7 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/"  -I"/tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/"  -I"/tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/RcppEigen/include/unsupported"  -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH" -I"/tmp/RtmpZMxiLj/RLIBS_2b2a260c76d4/BH/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/src/"  -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/StanHeaders/include/"  -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DBOOST_NO_CXX11_RVALUE_REFERENCES  -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include" -I"/tmp/Rtmph6gjzd/sourceCpp-x86_64-pc-linux-gnu-0.12.19" -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c file415d6625a1c2.cpp -o file415d6625a1c2.o
  make[1]: Leaving directory '/tmp/Rtmph6gjzd/sourceCpp-x86_64-pc-linux-gnu-0.12.19/sourcecpp_415d6704a771'
  ── 1. Error: (unknown) (@test_stan_functions.R#4)  ─────────────────────────────
  Error 1 occurred building shared library.
  1: tryCatch({
         rstan::expose_stan_functions(rstan::stanc(file = "../../inst/stan/prophet.stan"))
     }, error = function(e) {
         rstan::expose_stan_functions(rstan::stanc(file = system.file("stan/prophet.stan", 
             package = "prophet")))
     }) at testthat/test_stan_functions.R:4
  2: tryCatchList(expr, classes, parentenv, handlers)
  3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  4: value[[3L]](cond)
  5: rstan::expose_stan_functions(rstan::stanc(file = system.file("stan/prophet.stan", 
         package = "prophet"))) at testthat/test_stan_functions.R:9
  6: Rcpp::sourceCpp(code = paste(lines, collapse = "\n"), ...)
  7: stop("Error ", status, " occurred building shared library.")
  
                                                                                                                                                                                
                                                                                                                                                  "// [[Rcpp::depends(rstan)]]" 
                                                                                                                                                                                
                                                                                                                                                            "#include <Rcpp.h>" 
                                                                                                                                                                                
                                                                                                                                                       "#include <RcppEigen.h>" 
                                                         /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/exception/exception.hpp 
                                             "#include</home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/exception/exception.hpp>" 
                                                       /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/fusion/support/unused.hpp 
                                           "#include</home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/fusion/support/unused.hpp>" 
                                                /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/math/policies/error_handling.hpp 
                                    "#include</home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/math/policies/error_handling.hpp>" 
                                                          /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/phoenix/core/actor.hpp 
                                              "#include</home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rstan/include/boost_not_in_BH/boost/phoenix/core/actor.hpp>" 
                                                                                                                                                                                
                                                                                                                                                     "#include <stan/math.hpp>" 
                                                                                                                                                                                
                                                                                                                                 "#include <src/stan/lang/rethrow_located.hpp>" 
                                                                                                                                                                                
                                                                                                                                       "#include <src/stan/model/indexing.hpp>" 
                                                                                                                                                                                
                                                                                                                                           "#include <boost/exception/all.hpp>" 
                                                                                                                                                                                
                                                                                                                              "#include <boost/random/linear_congruential.hpp>" 
                                                                                                                                                                                
                                                                                                                                                             "#include <cmath>" 
                                                                                                                                                                                
                                                                                                                                                           "#include <cstddef>" 
                                                                                                                                                                                
                                                                                                                                                           "#include <fstream>" 
                                                                                                                                                                                
                                                                                                                                                          "#include <iostream>" 
                                                                                                                                                                                
                                                                                                                                                           "#include <sstream>" 
                                                                                                                                                                                
                                                                                                                                                         "#include <stdexcept>" 
                                                                                                                                                                                
                                                                                                                                                           "#include <utility>" 
                                                                                                                                                                                
                                                                                                                                                            "#include <vector>" 
                                                                                                                                                                                
                                                                                                                   "#include <boost/date_time/posix_time/posix_time_types.hpp>" 
                                                                                                                                                                                
                                                                                                                       "#include <boost/math/special_functions/fpclassify.hpp>" 
                                                                                                                                                                                
                                                                                                                                 "#include <boost/random/additive_combine.hpp>" 
                                                                                                                                                                                
                                                                                                                        "#include <boost/random/uniform_real_distribution.hpp>" 
                                                                                                                                                                                
                                                                                                                                     "// Code generated by Stan version 2.18.0" 
                                                                                                                                                                                
                                                                                                                                                                             "" 
                                                                                                                                                                                
                                                                                                                                   "stan::io::program_reader prog_reader__() {" 
                                                                                                                                                                                
                                                                                                                                         "    stan::io::program_reader reader;" 
                                                                                                                                                                                
                                                                                                        "    reader.add_event(0, 0, \"start\", \"model415d394a4060_prophet\");" 
                                                                                                                                                                                
                                                                                                      "    reader.add_event(128, 126, \"end\", \"model415d394a4060_prophet\");" 
                                                                                                                                                                                
                                                                                                                                                           "    return reader;" 
                                                                                                                                                                                
                                                                                                                                                                            "}" 
                                                                                                                                                                                
                                                                                                                                                          "// [[Rcpp::export]]" 
                                                                                                                                                                                
                                                                                                                                                                     "matrix_d" 
                                                                                                                                                                                
                                                                                                                                    "get_changepoint_matrix(const vector_d& t," 
                                                                                                                                                                                
                                                                                                                         "                           const vector_d& t_change," 
                                                                                                                                                                                
                                                                                                                                     "                           const int& T," 
                                                                                                                                                                                
                                                                                                                                   "                           const int& S) {" 
                                                                                                                                                                                
                                                                                                                                                          "using std::istream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::string;" 
                                                                                                                                                                                
                                                                                                                                                     "using std::stringstream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::vector;" 
                                                                                                                                                                                
                                                                                                                                                    "using stan::math::lgamma;" 
                                                                                                                                                                                
                                                                                                                                                  "using namespace stan::math;" 
                                                                                                                                                                                
                                                                                                                                      "std::ostream* pstream__ = &Rcpp::Rcout;" 
                                                                                                                                                                                
                                                                                                                                                            "(void) pstream__;" 
                                                                                                                                                                                
                                                                                                                                         "    typedef double local_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                          "    typedef local_scalar_t__ fun_return_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                                      "    const static bool propto__ = false;" 
                                                                                                                                                                                
                                                                                                                                                         "    (void) propto__;" 
                                                                                                                                                                                
                                                                                              "        local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());" 
                                                                                                                                                                                
                                                                                                                  "        (void) DUMMY_VAR__;  // suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                                                                    "    try {" 
                                                                                                                                                                                
                                                                                                                                                                    "        {" 
                                                                                                                                                                                
                                                                                                                        "        validate_non_negative_index(\"A\", \"T\", T);" 
                                                                                                                                                                                
                                                                                                                        "        validate_non_negative_index(\"A\", \"S\", S);" 
                                                                                                                                                                                
                                                                          "        matrix_d  A(static_cast<Eigen::VectorXd::Index>(T),static_cast<Eigen::VectorXd::Index>(S));" 
                                                                                                                                                                                
                                                                                                                   "        (void) A;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                              "        stan::math::initialize(A, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                     "        stan::math::fill(A,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                    "        validate_non_negative_index(\"a_row\", \"S\", S);" 
                                                                                                                                                                                
                                                                                                         "        row_vector_d  a_row(static_cast<Eigen::VectorXd::Index>(S));" 
                                                                                                                                                                                
                                                                                                               "        (void) a_row;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                          "        stan::math::initialize(a_row, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                 "        stan::math::fill(a_row,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                                       "        int cp_idx(0);" 
                                                                                                                                                                                
                                                                                                              "        (void) cp_idx;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                           "        stan::math::fill(cp_idx, std::numeric_limits<int>::min());" 
                                                                                                                                                                                
                                                                                                                            "        stan::math::assign(A, rep_matrix(0,T,S));" 
                                                                                                                                                                                
                                                                                                                      "        stan::math::assign(a_row, rep_row_vector(0,S));" 
                                                                                                                                                                                
                                                                                                                                       "        stan::math::assign(cp_idx, 1);" 
                                                                                                                                                                                
                                                                                                                                       "        for (int i = 1; i <= T; ++i) {" 
                                                                                                                                                                                
    "            while (as_bool((primitive_value(logical_lte(cp_idx,S)) && primitive_value(logical_gte(get_base1(t,i,\"t\",1),get_base1(t_change,cp_idx,\"t_change\",1)))))) {" 
                                                                                                                                                                                
                                                                                                                                  "                stan::model::assign(a_row, " 
                                                                                                                                                                                
                                                          "                            stan::model::cons_list(stan::model::index_uni(cp_idx), stan::model::nil_index_list()), " 
                                                                                                                                                                                
                                                                                                                                              "                            1, " 
                                                                                                                                                                                
                                                                                                                   "                            \"assigning variable a_row\");" 
                                                                                                                                                                                
                                                                                            "                stan::math::assign(cp_idx, stan::model::deep_copy((cp_idx + 1)));" 
                                                                                                                                                                                
                                                                                                                                                                "            }" 
                                                                                                                                                                                
                                                                                                                                          "            stan::model::assign(A, " 
                                                                                                                                                                                
                                                                   "                        stan::model::cons_list(stan::model::index_uni(i), stan::model::nil_index_list()), " 
                                                                                                                                                                                
                                                                                                                                              "                        a_row, " 
                                                                                                                                                                                
                                                                                                                           "                        \"assigning variable A\");" 
                                                                                                                                                                                
                                                                                                                                                                    "        }" 
                                                                                                                                                                                
                                                                                                         "        return stan::math::promote_scalar<fun_return_scalar_t__>(A);" 
                                                                                                                                                                                
                                                                                                                                                                    "        }" 
                                                                                                                                                                                
                                                                                                                                      "    } catch (const std::exception& e) {" 
                                                                                                                                                                                
                                                                                                               "        // Next line prevents compiler griping about no return" 
                                                                                                                                                                                
                                                                                                                                  "        throw std::runtime_error(e.what());" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                            "}" 
                                                                                                                                                                                
                                                                                                                                    "struct get_changepoint_matrix_functor__ {" 
                                                                                                                                                                                
                                                                                                                                                             "        matrix_d" 
                                                                                                                                                                                
                                                                                                                                            "    operator()(const vector_d& t," 
                                                                                                                                                                                
                                                                                                                         "                           const vector_d& t_change," 
                                                                                                                                                                                
                                                                                                                                     "                           const int& T," 
                                                                                                                                                                                
                                                                                     "                           const int& S, std::ostream* pstream__ = &Rcpp::Rcout) const {" 
                                                                                                                                                                                
                                                                                                                    "        return get_changepoint_matrix(t, t_change, T, S);" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                           "};" 
                                                                                                                                                                                
                                                                                                                                                          "// [[Rcpp::export]]" 
                                                                                                                                                                                
                                                                                                                                                                     "vector_d" 
                                                                                                                                                                                
                                                                                                                                              "logistic_gamma(const double& k," 
                                                                                                                                                                                
                                                                                                                                          "                   const double& m," 
                                                                                                                                                                                
                                                                                                                                    "                   const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                 "                   const vector_d& t_change," 
                                                                                                                                                                                
                                                                                                                                           "                   const int& S) {" 
                                                                                                                                                                                
                                                                                                                                                          "using std::istream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::string;" 
                                                                                                                                                                                
                                                                                                                                                     "using std::stringstream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::vector;" 
                                                                                                                                                                                
                                                                                                                                                    "using stan::math::lgamma;" 
                                                                                                                                                                                
                                                                                                                                                  "using namespace stan::math;" 
                                                                                                                                                                                
                                                                                                                                      "std::ostream* pstream__ = &Rcpp::Rcout;" 
                                                                                                                                                                                
                                                                                                                                                            "(void) pstream__;" 
                                                                                                                                                                                
                                                                                                                                         "    typedef double local_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                          "    typedef local_scalar_t__ fun_return_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                                      "    const static bool propto__ = false;" 
                                                                                                                                                                                
                                                                                                                                                         "    (void) propto__;" 
                                                                                                                                                                                
                                                                                              "        local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());" 
                                                                                                                                                                                
                                                                                                                  "        (void) DUMMY_VAR__;  // suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                                                                    "    try {" 
                                                                                                                                                                                
                                                                                                                                                                    "        {" 
                                                                                                                                                                                
                                                                                                                    "        validate_non_negative_index(\"gamma\", \"S\", S);" 
                                                                                                                                                                                
                                                                                                             "        vector_d  gamma(static_cast<Eigen::VectorXd::Index>(S));" 
                                                                                                                                                                                
                                                                                                               "        (void) gamma;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                          "        stan::math::initialize(gamma, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                 "        stan::math::fill(gamma,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                          "        validate_non_negative_index(\"k_s\", \"(S + 1)\", (S + 1));" 
                                                                                                                                                                                
                                                                                                         "        vector_d  k_s(static_cast<Eigen::VectorXd::Index>((S + 1)));" 
                                                                                                                                                                                
                                                                                                                 "        (void) k_s;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                            "        stan::math::initialize(k_s, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                   "        stan::math::fill(k_s,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                               "        local_scalar_t__ m_pr;" 
                                                                                                                                                                                
                                                                                                                "        (void) m_pr;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                           "        stan::math::initialize(m_pr, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                  "        stan::math::fill(m_pr,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                 "        stan::math::assign(k_s, append_row(k,add(k,cumulative_sum(delta))));" 
                                                                                                                                                                                
                                                                                                                                         "        stan::math::assign(m_pr, m);" 
                                                                                                                                                                                
                                                                                                                                       "        for (int i = 1; i <= S; ++i) {" 
                                                                                                                                                                                
                                                                                                                                      "            stan::model::assign(gamma, " 
                                                                                                                                                                                
                                                                   "                        stan::model::cons_list(stan::model::index_uni(i), stan::model::nil_index_list()), " 
                                                                                                                                                                                
                            "                        ((get_base1(t_change,i,\"t_change\",1) - m_pr) * (1 - (get_base1(k_s,i,\"k_s\",1) / get_base1(k_s,(i + 1),\"k_s\",1)))), " 
                                                                                                                                                                                
                                                                                                                       "                        \"assigning variable gamma\");" 
                                                                                                                                                                                
                                                                       "            stan::math::assign(m_pr, stan::model::deep_copy((m_pr + get_base1(gamma,i,\"gamma\",1))));" 
                                                                                                                                                                                
                                                                                                                                                                    "        }" 
                                                                                                                                                                                
                                                                                                     "        return stan::math::promote_scalar<fun_return_scalar_t__>(gamma);" 
                                                                                                                                                                                
                                                                                                                                                                    "        }" 
                                                                                                                                                                                
                                                                                                                                      "    } catch (const std::exception& e) {" 
                                                                                                                                                                                
                                                                                                               "        // Next line prevents compiler griping about no return" 
                                                                                                                                                                                
                                                                                                                                  "        throw std::runtime_error(e.what());" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                            "}" 
                                                                                                                                                                                
                                                                                                                                            "struct logistic_gamma_functor__ {" 
                                                                                                                                                                                
                                                                                                                                                             "        vector_d" 
                                                                                                                                                                                
                                                                                                                                              "    operator()(const double& k," 
                                                                                                                                                                                
                                                                                                                                          "                   const double& m," 
                                                                                                                                                                                
                                                                                                                                    "                   const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                 "                   const vector_d& t_change," 
                                                                                                                                                                                
                                                                                             "                   const int& S, std::ostream* pstream__ = &Rcpp::Rcout) const {" 
                                                                                                                                                                                
                                                                                                                     "        return logistic_gamma(k, m, delta, t_change, S);" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                           "};" 
                                                                                                                                                                                
                                                                                                                                                          "// [[Rcpp::export]]" 
                                                                                                                                                                                
                                                                                                                                                                     "vector_d" 
                                                                                                                                                                                
                                                                                                                                              "logistic_trend(const double& k," 
                                                                                                                                                                                
                                                                                                                                          "                   const double& m," 
                                                                                                                                                                                
                                                                                                                                    "                   const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                        "                   const vector_d& t," 
                                                                                                                                                                                
                                                                                                                                      "                   const vector_d& cap," 
                                                                                                                                                                                
                                                                                                                                        "                   const matrix_d& A," 
                                                                                                                                                                                
                                                                                                                                 "                   const vector_d& t_change," 
                                                                                                                                                                                
                                                                                                                                           "                   const int& S) {" 
                                                                                                                                                                                
                                                                                                                                                          "using std::istream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::string;" 
                                                                                                                                                                                
                                                                                                                                                     "using std::stringstream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::vector;" 
                                                                                                                                                                                
                                                                                                                                                    "using stan::math::lgamma;" 
                                                                                                                                                                                
                                                                                                                                                  "using namespace stan::math;" 
                                                                                                                                                                                
                                                                                                                                      "std::ostream* pstream__ = &Rcpp::Rcout;" 
                                                                                                                                                                                
                                                                                                                                                            "(void) pstream__;" 
                                                                                                                                                                                
                                                                                                                                         "    typedef double local_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                          "    typedef local_scalar_t__ fun_return_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                                      "    const static bool propto__ = false;" 
                                                                                                                                                                                
                                                                                                                                                         "    (void) propto__;" 
                                                                                                                                                                                
                                                                                              "        local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());" 
                                                                                                                                                                                
                                                                                                                  "        (void) DUMMY_VAR__;  // suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                                                                    "    try {" 
                                                                                                                                                                                
                                                                                                                                                                    "        {" 
                                                                                                                                                                                
                                                                                                                    "        validate_non_negative_index(\"gamma\", \"S\", S);" 
                                                                                                                                                                                
                                                                                                             "        vector_d  gamma(static_cast<Eigen::VectorXd::Index>(S));" 
                                                                                                                                                                                
                                                                                                               "        (void) gamma;  // dummy to suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                          "        stan::math::initialize(gamma, DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                                                 "        stan::math::fill(gamma,DUMMY_VAR__);" 
                                                                                                                                                                                
                                                                                                     "        stan::math::assign(gamma, logistic_gamma(k,m,delta,t_change,S));" 
                                                                                                                                                                                
  "        return stan::math::promote_scalar<fun_return_scalar_t__>(elt_multiply(cap,inv_logit(elt_multiply(add(k,multiply(A,delta)),subtract(t,add(m,multiply(A,gamma)))))));" 
                                                                                                                                                                                
                                                                                                                                                                    "        }" 
                                                                                                                                                                                
                                                                                                                                      "    } catch (const std::exception& e) {" 
                                                                                                                                                                                
                                                                                                               "        // Next line prevents compiler griping about no return" 
                                                                                                                                                                                
                                                                                                                                  "        throw std::runtime_error(e.what());" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                            "}" 
                                                                                                                                                                                
                                                                                                                                            "struct logistic_trend_functor__ {" 
                                                                                                                                                                                
                                                                                                                                                             "        vector_d" 
                                                                                                                                                                                
                                                                                                                                              "    operator()(const double& k," 
                                                                                                                                                                                
                                                                                                                                          "                   const double& m," 
                                                                                                                                                                                
                                                                                                                                    "                   const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                        "                   const vector_d& t," 
                                                                                                                                                                                
                                                                                                                                      "                   const vector_d& cap," 
                                                                                                                                                                                
                                                                                                                                        "                   const matrix_d& A," 
                                                                                                                                                                                
                                                                                                                                 "                   const vector_d& t_change," 
                                                                                                                                                                                
                                                                                             "                   const int& S, std::ostream* pstream__ = &Rcpp::Rcout) const {" 
                                                                                                                                                                                
                                                                                                          "        return logistic_trend(k, m, delta, t, cap, A, t_change, S);" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                           "};" 
                                                                                                                                                                                
                                                                                                                                                          "// [[Rcpp::export]]" 
                                                                                                                                                                                
                                                                                                                                                                     "vector_d" 
                                                                                                                                                                                
                                                                                                                                                "linear_trend(const double& k," 
                                                                                                                                                                                
                                                                                                                                            "                 const double& m," 
                                                                                                                                                                                
                                                                                                                                      "                 const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                          "                 const vector_d& t," 
                                                                                                                                                                                
                                                                                                                                          "                 const matrix_d& A," 
                                                                                                                                                                                
                                                                                                                                 "                 const vector_d& t_change) {" 
                                                                                                                                                                                
                                                                                                                                                          "using std::istream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::string;" 
                                                                                                                                                                                
                                                                                                                                                     "using std::stringstream;" 
                                                                                                                                                                                
                                                                                                                                                           "using std::vector;" 
                                                                                                                                                                                
                                                                                                                                                    "using stan::math::lgamma;" 
                                                                                                                                                                                
                                                                                                                                                  "using namespace stan::math;" 
                                                                                                                                                                                
                                                                                                                                      "std::ostream* pstream__ = &Rcpp::Rcout;" 
                                                                                                                                                                                
                                                                                                                                                            "(void) pstream__;" 
                                                                                                                                                                                
                                                                                                                                         "    typedef double local_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                          "    typedef local_scalar_t__ fun_return_scalar_t__;" 
                                                                                                                                                                                
                                                                                                                                      "    const static bool propto__ = false;" 
                                                                                                                                                                                
                                                                                                                                                         "    (void) propto__;" 
                                                                                                                                                                                
                                                                                              "        local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());" 
                                                                                                                                                                                
                                                                                                                  "        (void) DUMMY_VAR__;  // suppress unused var warning" 
                                                                                                                                                                                
                                                                                                                                                                    "    try {" 
                                                                                                                                                                                
      "        return stan::math::promote_scalar<fun_return_scalar_t__>(add(elt_multiply(add(k,multiply(A,delta)),t),add(m,multiply(A,elt_multiply(minus(t_change),delta)))));" 
                                                                                                                                                                                
                                                                                                                                      "    } catch (const std::exception& e) {" 
                                                                                                                                                                                
                                                                                                               "        // Next line prevents compiler griping about no return" 
                                                                                                                                                                                
                                                                                                                                  "        throw std::runtime_error(e.what());" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                            "}" 
                                                                                                                                                                                
                                                                                                                                              "struct linear_trend_functor__ {" 
                                                                                                                                                                                
                                                                                                                                                             "        vector_d" 
                                                                                                                                                                                
                                                                                                                                              "    operator()(const double& k," 
                                                                                                                                                                                
                                                                                                                                            "                 const double& m," 
                                                                                                                                                                                
                                                                                                                                      "                 const vector_d& delta," 
                                                                                                                                                                                
                                                                                                                                          "                 const vector_d& t," 
                                                                                                                                                                                
                                                                                                                                          "                 const matrix_d& A," 
                                                                                                                                                                                
                                                                                   "                 const vector_d& t_change, std::ostream* pstream__ = &Rcpp::Rcout) const {" 
                                                                                                                                                                                
                                                                                                                    "        return linear_trend(k, m, delta, t, A, t_change);" 
                                                                                                                                                                                
                                                                                                                                                                        "    }" 
                                                                                                                                                                                
                                                                                                                                                                           "};" 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 322 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test_stan_functions.R#4) 
  
  Error: testthat unit tests failed
  Execution halted