Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

working with package without Namespace in R

I have got betaversion from website. The only available is windows installation as mybetapackage.zip file. When I installed the package, it does not work when I load 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 package someway ?

Edits:

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

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

Now I am getting following warning.

Warning message:
In readLines(file) :
  incomplete final line found on 'C:/Users/user/Documents/R/win-library/2.14/RCropStat/NAMESPACE
like image 533
jon Avatar asked Apr 20 '12 01:04

jon


1 Answers

Based on the discussion above I am answering my own questions. All credit goes to who discussed this issue.

Create a file with the following text and put an extra line to avoid an error. Same in the directory for the package where you have description file.

exportPattern("^[^\\.]")
like image 113
jon Avatar answered Nov 15 '22 10:11

jon