[rkward] rkward/rbackend/rpackages/rkward: rebuilt 'rkward' package

meik michalke meik.michalke at uni-duesseldorf.de
Wed May 23 21:41:47 UTC 2018


Am Mittwoch, 23. Mai 2018, 21:11:00 CEST schrieb Thomas Friedrichsmeier:
> On Wed, 23 May 2018 00:23:01 +0200
> meik michalke <meik.michalke at uni-duesseldorf.de> wrote:
> > <error>
> > Error in .install_package_code_files(".", instdir) :
> > files in
> > '/<<BUILDDIR>>/rkward-0.7.0z+0.7.1+devel1/rkward/rbackend/rpackages/
> > rkward/R' missing from 'Collate' field: ver.R
> > ERROR: unable to collate and parse R files for package ‘rkward’
> > </error>
> ver.R is "missing", because it is generated at compile-time. You
> probably did not attempt to build, locally, before running roxygen, and
> so it was missing. BTW, scripts/roxygenize.sh checks for this
> condition. Use that instead of manual roxygen.

ok, looks like it really was just a syncing problem. just tested the build, 
askYesNo() is now successfully calling rk.askYesNo() out-of-the-box.

just to understand what happened here:

 - ver.R is missing in the sources because it must be generated during build
   to always show the correct version string

 - but the file must still be listed in the collate field of the DESCRIPTION 
   file in the sources because package build will fail otherwise

 - also .rk.app.version must be exported in the NAMESPACE file

 - so cmake is being called to generate ver.R locally, but the file is
   actually only needed to trigger the entries in DESCRIPTION and NAMESPACE

is that about correct? if so, then a local dummy of ver.R with an arbitrary 
exported function .rk.app.version() should also do the trick, making the cmake 
call unnecessary. instead of just a check for the file the script could 
actually just generate one itself. it would be replaced with a proper one if 
RKWard was *really* built, so there's no harm done.

also, i suppose it would be even better to use the (adjusted) content of 
longer roxyPackage script instead of just roxygenise(), because that also 
updates all the other files where info like version number or packaging date 
are stored (like in the *-package.R file, where the latest build still claimed 
it was rkward 0.6.3 from 2014-10-30).

viele grüße :: m.eik

  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20180523/e1813227/attachment.sig>

More information about the rkward-devel mailing list