Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13888

[R] Rephrase docs for schema()'s ellipses argument and rephrase error message

    XMLWordPrintableJSON

Details

    Description

      In the docs for schema(), the ellipses argument is documented as "named list of data types".

      However, if I create a schema using a named list, e.g.

       

      share_schema <- schema(
        list(
          company = utf8(),
          price = float64(),
          date = date32()
        )
      )
      

      I get the error: {{Error: !is.null(nms <- names(.list)) is not TRUE }}

      We should:

      1. Rephrase the documentation of that argument so it doesn't say to use a named list
      2. Update the error message shown if a named list is supplied to be a little clearer about what the user has done wrong

       

      Attachments

        Issue Links

          Activity

            People

              thisisnic Nicola Crane
              thisisnic Nicola Crane
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m