problems with the agricultural package

Asked

Viewed 290 times

2

I’m having trouble using the farm package.

When I put the command require(farm), the following error appears:

require(agricolae)
Carregando pacotes exigidos: agricolae
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
there is no package called ‘coda’
In addition: Warning message:
package ‘agricolae’ was built under R version 3.2.5 

and the package just doesn’t work. Has anyone had this kind of problem? Or do you know what might be going on?

  • 2

    looks like you don’t have the 'Coda' package, can confirm this?

  • That’s right! I installed the "Coda" package and it worked! Thank you so much for your help!!

1 answer

4

In the fourth line of error the R is stating that you do not own the package coda, how @Guilherme Lima noticed.

This problem can be solved by asking for the install.packages() download the dependencies with the argument dependencies:

install.packages('agricolae', dependencies = TRUE)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.