'Generate data from an arbitrary multivariate continuous density function

I am trying to sample from a multivariate distribution given by a (quite complex, but continuous) density function in R. For the univariate case I used AbscontDistribution from the distr package, but I cannot make it work for the multivariate case.

I tried finding an appropriate package for this problem online, but cannot find one. Any ideas?

Thanks! :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source