I got the same error Error in UseMethod("posterior") : no applicable method for 'posterior' applied to an object of class "c('LDA_Gibbs', 'LDA', 'Gibbs', 'TopicModel')"
Restarting the R session fixed the problem.