Working with a package without a namespace in R

I have a beta version from the site. Only Windows installation is available as the mybetapackage.zip file. When I installed the package, it does not work when I download it.

> utils:::menuInstallLocal() > require(mypackage) Loading required package: mypackage Failed with error: 'package 'mypackage' does not have a NAMESPACE and should be re-installed' 

Is it possible to use this beta?

Changes:

I tried the following instructions to create my own namespace. The namespace file contains the following:

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

Now I get the following warning.

 Warning message: In readLines(file) : incomplete final line found on 'C:/Users/user/Documents/R/win-library/2.14/RCropStat/NAMESPACE 
+6
source share
1 answer

Based on the discussion above, I answer my questions. All loans refer to the one who discussed this issue.

Create a file with the following text and add an extra line to avoid an error. The same in the directory for the package in which there is a description file.

 exportPattern("^[^\\.]") 
+3
source

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


All Articles