problems with the agricolae package

2

I'm having trouble using the agricolae package.

When I put the require (agricolae) command, 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 simply does not spin. Has anyone had this kind of problem? Or do you know what might be happening?

    
asked by anonymous 01.03.2017 / 18:39

1 answer

5

In the fourth line of the error, R is reporting that you do not have the coda package, as noted by @Guilherme Lima.

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

install.packages('agricolae', dependencies = TRUE)
    
01.03.2017 / 19:54