I'm doing a project with the "likelihood" package, which I installed using the install.packages() function. It appears in my package library like it should; however, the following chunk of code produces the error "there is no package called "likelihood". Does anyone know what the problem could be?
noreturn <- clusterEvalQ(cl, model1 <- function(dsn, don, dbn, dof, dbf, betas, lambdas) {
disp <- betas[beta_ind] * (exp(-0.5*(log((distances + dsn)/don)/dbn)) +
exp(-0.5*(log( distances /dof)/dbf)))
rowSums(disp, na.rm = T) * lambdas[lambda_ind]
})
noreturn <- clusterEvalQ(cl, library(likelihood))