Skip to content

Unable to install R package 'BayesFactor' #10

@jadecci

Description

@jadecci

I am unable to install the 'BayesFactor' package used in Chapter 10. I followed recommendation from statsoverflow and tried to install the package with the following code in Python:

import rpy2.robjects.package as rpackages

utils = rpackages.importr('utils')
utils.chooseCRANmirror(ind=1)
utils.install_packages("BayesFactor")
BayesFactor = rpackages.importr("BayesFactor")

I am getting the following error:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
    there is no package called 'mvtnorm'

I'm not able to find the package 'mvtnorm' either. Any idea what I'm missing?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions