Skip to content

build and install

3 messages · Adrian Dusa, Simon Urbanek

#
Dear All,

Recently switched to a Mac (Lion), now trying to build and install a
local package that works just fine in both Windows and Linux.

R CMD check gives:
* using log directory ?/Users/dusadrian/statusor.Rcheck?
* using R version 2.13.1 (2011-07-08)
* using platform: x86_64-apple-darwin9.8.0 (64-bit)
* using session charset: UTF-8
* checking for file ?statusor/DESCRIPTION? ... OK
* checking extension type ... Package
* this is package ?statusor? version ?0.6-1?
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package ?statusor? can be installed ... ERROR
Installation failed.
See ?/Users/dusadrian/statusor.Rcheck/00install.out? for details.

The .out file writes:
* installing *source* package ?statusor? ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in file(file, "r", encoding = encoding) :
  cannot open the connection
Calls: source -> file
Execution halted
ERROR: loading failed
* removing ?/Users/dusadrian/statusor.Rcheck/statusor?

Thanks for any hints,
Adrian
#
This is just a shot in the dark since you didn't provide any details about the package: chances are that you have invalid characters in one of the source files and/or your'e trying to source something that doesn't exist.
Consider putting your package somewhere so we can have a look...

Cheers,
Simon
On Nov 8, 2011, at 10:51 AM, Adrian Dusa wrote:

            
#
Right... that was it.
There was nothing wrong with the package itself, rather with a file in
the .Rprofile (MacOS paths are a little different from the Linux
paths).

Thanks,
Adrian
On Tue, Nov 8, 2011 at 18:46, Simon Urbanek <simon.urbanek at r-project.org> wrote: