[R-pkg-devel] Building fails with 'mypackage/DESCRIPTION' does not exist

Steve Gutreuter @gutreuter @end|ng |rom gm@||@com
Tue Oct 1 15:26:07 CEST 2019


First, thank you Bill Dunlap, Peter Dalgaard and Max Turgeon,

I edited (incompletely) the initial posting and failed to change screenr 
to mypackage.  However that was not the source of the problem.
Windows sysadmins cannot be convinced that paths containing white space 
are pure evil, but that is also not the problem because building also 
fails on a Linux Mint box that uses only sane file/directory names.
Default installation from GitHub (sgutreuter/screenr) succeeds because 
the version in Master is OK.  The version in branch fixROC fails.

I think that the root of the problem is that the Rd files are not being 
created in /man.  Roxygen2::roxygenize() is failing *silently* (another 
source of frustration).  So I suspect the problem lies somewhere in the 
comments for one or more of the functions.  I am trying to identify 
where from a diff, as Bill suggested.

Best regards,
Steve


On 9/30/19 5:30 PM, William Dunlap wrote:
> Will the package build if you back out the "minor changes"?  If so, 
> what were the minor changes (show diff output)?
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com <http://tibco.com>
>
>
> On Mon, Sep 30, 2019 at 12:24 PM Steve Gutreuter <sgutreuter using gmail.com 
> <mailto:sgutreuter using gmail.com>> wrote:
>
>     I have a package which will no longer build after minor changes.  The
>     problem occurs under both Windows 10 and Linux Mint.  For example,
>     from a
>     Windows terminal I do:
>
>     C:\Users\xyz\OneDrive - ORG\Computing\Devel> R CMD build screenr
>
>     and I get:
>
>     * checking for file 'mypackage/DESCRIPTION' ... OK
>     * preparing 'mypackage':
>     * checking DESCRIPTION meta-information ... OK
>     * installing the package to process help pages
>     * saving partial Rd database
>      Error in .read_description(ldpath) :
>        file 'mypackage/DESCRIPTION' does not exist
>      Execution halted
>
>     So the first and third lines of output contradict the error
>     message, and of
>     course mypackage/DESCRIPTION does exist.  I suspect the problem
>     has nothing
>     to do with the DESCRIPTION file, but have not found way to
>     identify the
>     actual problem in searches on StackOverflow and elsewhere. My .R
>     files in
>     mypackage/R contain Roxygen comments, and curiously
>     devtools::document()
>     adds nothing to mypackage/man.
>
>     Any suggestions about how to debug or solve this problem?
>
>     Thanks!
>     Steve
>
>             [[alternative HTML version deleted]]
>
>     ______________________________________________
>     R-package-devel using r-project.org
>     <mailto:R-package-devel using r-project.org> mailing list
>     https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

-- 
Steve Gutreuter


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list