From murdoch.duncan at gmail.com  Thu Jan 29 13:33:35 2015
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Thu, 29 Jan 2015 07:33:35 -0500
Subject: [Rd] Error in help files connection
In-Reply-To: <CAAyVsXJiiyN+yPjykb=g9_yZSViofjy4uKgxyH6hkjg868NWeg@mail.gmail.com>
References: <CAAyVsXJiiyN+yPjykb=g9_yZSViofjy4uKgxyH6hkjg868NWeg@mail.gmail.com>
Message-ID: <54CA289F.2000901@gmail.com>

On 25/01/2015 1:58 PM, Axel Urbiz wrote:
> Hello,
> 
> I'm building a package on Mac OS. The build/check/install goes all ok.
> Also, the package gets loaded properly with library(my_package).
> 
> However, when I call the help file for a given function in the package --
> i.e., "?my_function", I get the following error:
> 
> Error in gzfile(file, "rb") : cannot open the connection
> 
> I've search for this issue, but did not find anything that could help in my
> case.
> 

You'll need to make your package available if you want someone else to
help.  If you want to do it yourself, use options(error=recover) to find
out what file R was trying to open, likely something like

/Library/Frameworks/R.framework/Resources/library/*/Meta/package.rds

and then work out why R was unable to open it.

Duncan Murdoch



[Rd] Error in help files connection
Duncan Murdoch