library(distributional)
dist_multivariate_normal() |> density(0)
#> Error in if (p != ncol(sigma)) stop("x and sigma have non-conforming size"): argument is of length zero
dist_multivariate_normal(list(0), sigma = list(diag(1))) |> density(0)
#> [1] 0.3989423
Created on 2024-07-31 with reprex v2.1.1