Error with asreml.d package in R-2.14.0

I installed asreml.d on R 2.14.0 using Install packages from local zip files from the Packages menu. When I try to download a package using library(asreml.d) , I get the following error:

 Error in library(asreml.d) : package 'asreml.d' does not have a NAMESPACE and should be re-installed 

The error occurs even after reinstalling. Any comments, ideas and solutions to solve this problem will be highly appreciated. Thank you in advance for your time and help.

+3
source share
1 answer

Package compilers need to update the package to include the NAMESPACE file.

However, you may be lucky to insert the NAMESPACE file yourself as a hack. It looks like ASReml is closed source, but you have a .zip file. Try unzipping it. Then create a simple text file containing:

 exportPattern("^[^\\.]") 

Save it as NAMESPACE (be careful if there is no extension such as .txt, Windows sometimes crashes them). Put NAMESPACE in the top folder of the unpacked package (it should be something like asreml.d/ , there will also be a DESCRIPTION file). If there is an MD5 file, you should probably delete it. Now re-run the asreml.d/ directory. See if the new zip file works.

For more information about NAMESPACE see http://cran.r-project.org/doc/manuals/R-exts.html#Package-namespaces .

NB This may be bad advice. But it looks like it will work. It will not hurt anything.

+5
source

Source: https://habr.com/ru/post/913677/


All Articles