[R] Unable to require installed package

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jan 27 10:12:45 CET 2011

On Thu, Jan 27, 2011 at 7:57 AM, 刘力平 <liping.liulp at gmail.com> wrote:
> Hi,
> I write a package in Linux and ready to distribute, and I can install it in
> linux and run it.
> However, when I have install it in my Windows' R.
> I can not 'require' it.
>> is.element("grt", installed.packages()[,1])
> [1] TRUE
>> require(grt)
> Loading required package: grt
> Failed with error:  ‘'grt' is not a valid installed package’
> Is there any pitfall between platforms?
> And anywhere I could check more detailed error message.

 How did you install it in Windows? If you just copied it from the
Linux install directory, or if its in a shared directory, it probably
wont work.

 You need to do a proper R CMD INSTALL on Windows, and for that you'll
need the assorted dev tools for building R packages on Windows.


More information about the R-help mailing list