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

[R] read_* functions should close connection to file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • R

    Description

      x = as.data.frame(seq(1:100))

      pbFilename <- file.path(getwd(), "reproduceBug.feather")

      arrow::write_feather(x = x, sink = pbFilename)
      file.exists(pbFilename)
      file.remove(pbFilename)

      arrow::write_feather(x = x, sink = pbFilename)
      tempDX <- arrow::read_feather(file = pbFilename, as_data_frame = T)

      file.exists(pbFilename)
      file.remove(pbFilename)

      >Warning message:
      >In file.remove(pbFilename) :
      >cannot remove file 'C:/Martin/Repo/ReinforcementLearner/reproduceBug.feather', reason

      >  'Permission denied'

       

      Attachments

        Activity

          People

            npr Neal Richardson
            M1520 Martin
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 1h 20m
                1h 20m