LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Undefined control sequence.
<argument> \pi _k \sim \text 
                             {Dirichlet}(e_0,\dots ,e_0)
l.113 ...k \sim \text{Dirichlet}(e_0,\dots,e_0)}{}
                                                  
! Undefined control sequence.
<argument> e_0 \sim \text 
                          {Gamma}\left (a_0, A_0\right )
l.115 ...\sim \text{Gamma}\left(a_0, A_0\right)}{}
                                                  
! Undefined control sequence.
<argument> \mu _k \sim \text 
                             {Normal}( \text {b}_0, \text {B}_0),
l.127 ...text{Normal}( \text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> \mu _k \sim \text {Normal}( \text 
                                             {b}_0, \text {B}_0),
l.127 ...text{Normal}( \text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> ... \text {Normal}( \text {b}_0, \text 
                                                  {B}_0),
l.127 ...text{Normal}( \text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> \sigma ^{-2}_k \sim \text 
                                     {Gamma}( \text {c}_0, \text {C}_0),
l.128 ...\text{Gamma}( \text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...a ^{-2}_k \sim \text {Gamma}( \text 
                                                  {c}_0, \text {C}_0),
l.128 ...\text{Gamma}( \text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...m \text {Gamma}( \text {c}_0, \text 
                                                  {C}_0),
l.128 ...\text{Gamma}( \text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> C_0 \sim \text 
                          {Gamma}( \text {g}_0, \text {G}_0).
l.129 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> C_0 \sim \text {Gamma}( \text 
                                         {g}_0, \text {G}_0).
l.129 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> ...m \text {Gamma}( \text {g}_0, \text 
                                                  {G}_0).
l.129 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> ...ht )^2\right ) \^^M\left (1 + \text 
                                                  {erf}\left ( \alpha _k\lef...
l.137 ...\omega_k\sqrt{2}}\right)\right)\right)}{}
                                                  
! Undefined control sequence.
<argument> (\xi _k, \psi _k)' \sim \text 
                                         {Normal}(\text {b}_0, \text {B}_0),
l.148 ...\text{Normal}(\text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...\psi _k)' \sim \text {Normal}(\text 
                                                  {b}_0, \text {B}_0),
l.148 ...\text{Normal}(\text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...m \text {Normal}(\text {b}_0, \text 
                                                  {B}_0),
l.148 ...\text{Normal}(\text{b}_0, \text{B}_0),}{}
                                                  
! Undefined control sequence.
<argument> \sigma ^{-2}_k \sim \text 
                                     {Gamma}(\text {c}_0, \text {C}_0),
l.149 ... \text{Gamma}(\text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...ma ^{-2}_k \sim \text {Gamma}(\text 
                                                  {c}_0, \text {C}_0),
l.149 ... \text{Gamma}(\text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> ...im \text {Gamma}(\text {c}_0, \text 
                                                  {C}_0),
l.149 ... \text{Gamma}(\text{c}_0, \text{C}_0),}{}
                                                  
! Undefined control sequence.
<argument> \text 
                 {C}_0 \sim \text {Gamma}( \text {g}_0, \text {G}_0).
l.150 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> \text {C}_0 \sim \text 
                                  {Gamma}( \text {g}_0, \text {G}_0).
l.150 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> \text {C}_0 \sim \text {Gamma}( \text 
                                                 {g}_0, \text {G}_0).
l.150 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> ...m \text {Gamma}( \text {g}_0, \text 
                                                  {G}_0).
l.150 ...\text{Gamma}( \text{g}_0, \text{G}_0).}{}
                                                  
! Undefined control sequence.
<argument> \text 
                 {b}_0 = (\text {median}(y), 0)'
l.151 ...qn{\text{b}_0 = (\text{median}(y), 0)'}{}
                                                   and \deqn{\text{B}_0 = \t...
! Undefined control sequence.
<argument> \text {b}_0 = (\text 
                                {median}(y), 0)'
l.151 ...qn{\text{b}_0 = (\text{median}(y), 0)'}{}
                                                   and \deqn{\text{B}_0 = \t...
! Undefined control sequence.
<argument> \text 
                 {B}_0 = \text {diag}(\text {D}\_\text {xi}, \text {D}\_\tex...
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> \text {B}_0 = \text 
                               {diag}(\text {D}\_\text {xi}, \text {D}\_\tex...
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> \text {B}_0 = \text {diag}(\text 
                                            {D}\_\text {xi}, \text {D}\_\tex...
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> ...}_0 = \text {diag}(\text {D}\_\text 
                                                  {xi}, \text {D}\_\text {psi})
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> ...{diag}(\text {D}\_\text {xi}, \text 
                                                  {D}\_\text {psi})
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> ...t {D}\_\text {xi}, \text {D}\_\text 
                                                  {psi})
l.151 ...t{D}\_\text{xi}, \text{D}\_\text{psi})}{}
                                                   with D\_xi = D\_psi = 1.
! Undefined control sequence.
<argument> \lambda _k \sim \text 
                                 {Gamma}(\text {l}_0,\text {L}_0).
l.159 ...m \text{Gamma}(\text{l}_0,\text{L}_0).}{}
                                                  
! Undefined control sequence.
<argument> \lambda _k \sim \text {Gamma}(\text 
                                               {l}_0,\text {L}_0).
l.159 ...m \text{Gamma}(\text{l}_0,\text{L}_0).}{}
                                                  
! Undefined control sequence.
<argument> ...sim \text {Gamma}(\text {l}_0,\text 
                                                  {L}_0).
l.159 ...m \text{Gamma}(\text{l}_0,\text{L}_0).}{}
                                                  
! Undefined control sequence.
<argument> P(\#\text 
                     {modes}=M)=\frac {1}{D}\sum _{d=1}^{D}1(M^{(d)} = M).
l.315 ...rac{1}{D}\sum_{d=1}^{D}1(M^{(d)} = M).}{}
                                                  
! Undefined control sequence.
<argument> P(y=\text 
                     {mode})=\frac {1}{D}\sum _{d=1}^{D} \sum _{m=1}^{M^{(d)...
l.317 ...\sum_{m=1}^{M^{(d)}} 1(y = y_m^{(d)}),}{}
                                                  
! Undefined control sequence.
<argument> abs(x^{(n+1)}-x^{(n)})< \text 
                                         {tol}_\text {conv}
l.720 ...n+1)}-x^{(n)})< \text{tol}_\text{conv}}{}
                                                  ,
! Undefined control sequence.
<argument> ...{(n+1)}-x^{(n)})< \text {tol}_\text 
                                                  {conv}
l.720 ...n+1)}-x^{(n)})< \text{tol}_\text{conv}}{}
                                                  ,
! Undefined control sequence.
<recently read> \text 
                      
l.721 where \eqn{\text{tol}_\text{conv}}{}
                                           is an argument with default value...
! Undefined control sequence.
<argument> \text {tol}_\text 
                             {conv}
l.721 where \eqn{\text{tol}_\text{conv}}{}
                                           is an argument with default value...
! Undefined control sequence.
<argument> (ii) \quad x^{(n+1)} = \text 
                                        {argmax}_x \sum _k p(k|x) \text {log...
l.834 ...\sum_k p(k|x) \text{log} p_k(x^{(n)}),}{}
                                                  
! Undefined control sequence.
<argument> ...ext {argmax}_x \sum _k p(k|x) \text 
                                                  {log} p_k(x^{(n)}),
l.834 ...\sum_k p(k|x) \text{log} p_k(x^{(n)}),}{}
                                                  
! Undefined control sequence.
<argument> abs(x^{(n+1)}-x^{(n)})< \text 
                                         {tol}_\text {conv}
l.835 ...n+1)}-x^{(n)})< \text{tol}_\text{conv}}{}
                                                  ,
! Undefined control sequence.
<argument> ...{(n+1)}-x^{(n)})< \text {tol}_\text 
                                                  {conv}
l.835 ...n+1)}-x^{(n)})< \text{tol}_\text{conv}}{}
                                                  ,
! Undefined control sequence.
<recently read> \text 
                      
l.836 where \eqn{\text{tol}_\text{conv}}{}
                                           is an argument with default value...
! Undefined control sequence.
<argument> \text {tol}_\text 
                             {conv}
l.836 where \eqn{\text{tol}_\text{conv}}{}
                                           is an argument with default value...