Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28309

AppVeyor fails to install testthat (1.0.2) due to previously installed testthat (2.1.0) due to devtools

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Project Infra, SparkR
    • Labels:
      None

      Description

      Looks like devtools 2.1.0 is released and then our AppVeyor users the latest one.
      The problem is, they added testthat 2.1.1+ as its dependency - https://github.com/r-lib/devtools/blob/master/DESCRIPTION#L35

      Usually it should remove and reinstall it properly; however, seems it's being failed in AppVeyor due to the previous installation.

      [00:01:41] > devtools::install_version('testthat', version = '1.0.2', repos='https://cloud.r-project.org/')
      [00:01:44] Downloading package from url: https://cloud.r-project.org//src/contrib/Archive/testthat/testthat_1.0.2.tar.gz
      ...
      [00:02:25] WARNING: moving package to final location failed, copying instead
      [00:02:25] Warning in file.copy(instdir, dirname(final_instdir), recursive = TRUE,  :
      [00:02:25]   problem copying c:\RLibrary\00LOCK-testthat\00new\testthat\libs\i386\testthat.dll to c:\RLibrary\testthat\libs\i386\testthat.dll: Permission denied
      [00:02:25] ** testing if installed package can be loaded from final location
      [00:02:25] *** arch - i386
      [00:02:26] Error: package or namespace load failed for 'testthat' in FUN(X[[i]], ...):
      [00:02:26]  no such symbol find_label_ in package c:/RLibrary/testthat/libs/i386/testthat.dll
      [00:02:26] Error: loading failed
      [00:02:26] Execution halted
      [00:02:26] *** arch - x64
      [00:02:26] ERROR: loading failed for 'i386'
      [00:02:26] * removing 'c:/RLibrary/testthat'
      [00:02:26] * restoring previous 'c:/RLibrary/testthat'
      [00:02:26] Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
      [00:02:26]   problem copying c:\RLibrary\00LOCK-testthat\testthat\libs\i386\testthat.dll to c:\RLibrary\testthat\libs\i386\testthat.dll: Permission denied
      [00:02:26] Warning message:
      [00:02:26] In i.p(...) :
      [00:02:26]   installation of package 'C:/Users/appveyor/AppData/Local/Temp/1/RtmpIx25hi/remotes5743d4a9b1/testthat' had non-zero exit status
      

      devtools was installed at SPARK-22817 to pin the testthat version.

      Therefore, we might have to work around this by directly installing from the archive.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hyukjin.kwon Hyukjin Kwon
                Reporter:
                hyukjin.kwon Hyukjin Kwon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: