From csgillespie at gmail.com  Mon Jul  3 14:35:10 2017
From: csgillespie at gmail.com (Colin Gillespie)
Date: Mon, 03 Jul 2017 12:35:10 +0000
Subject: [Rd] The ByteCompile & LazyLoading fields
Message-ID: <CADbDLZ=YQ9vdHXQ6CzAYmY0syYRJ8aZ0xuYkUzszJ4bgYkDXjQ@mail.gmail.com>

Hi,

In the DESCRIPTION file the ByteCompile and LazyLoading arguments appear to
accept any value.

>From the manual the field should be a "logical field". However, authors
interpret this in a variety of ways:

unique(tools::CRAN_package_db()$ByteCompile)
# [1] NA     "TRUE" "yes"  "true" "Yes"  "no"
# unique(tools::CRAN_package_db()$LazyData)
# [1] NA               "true"           "TRUE"           "yes"
 "no"             "false"
# [7] "True"           "Yes"            "FALSE"          "YES"
 "LazyData: true" "NA"
# [13] "No"

I presume that all non NA are treated as TRUE.

This observation applies to other logical fields in the DESCRIPTION file.

Colin

	[[alternative HTML version deleted]]



[Rd] The ByteCompile & LazyLoading fields
Colin Gillespie