Skip to content

Installation in RStudio fails #1

@inscara

Description

@inscara

Hi,

I cannot install the package in RStudio 2022.02.1 Build 461 (R 3.4.3). It spits an error about "bad restore file magic number" during the installation with install.packages("string.alignment"):

CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. * installing *source* package 'text.alignment' ... ** package 'text.alignment' successfully unpacked and MD5 sums checked ** libs

*** arch - i386
C:/HYApp/Rtools3.4/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA1/R/R-341.3/include" -DNDEBUG -I"C:/rlibs/3.4.3/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/HYApp/Rtools3.4/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA1/R/R-341.3/include" -DNDEBUG -I"C:/rlibs/3.4.3/Rcpp/include" -O2 -Wall -mtune=generic -c smith_waterman_matrix.cpp -o smith_waterman_matrix.o
C:/HYApp/Rtools3.4/mingw_32/bin/g++ -shared -s -static-libgcc -o text.alignment.dll tmp.def RcppExports.o smith_waterman_matrix.o -LC:/PROGRA1/R/R-341.3/bin/i386 -lR
installing to C:/rlibs/3.4.3/text.alignment/libs/i386

*** arch - x64
C:/HYApp/Rtools3.4/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA1/R/R-341.3/include" -DNDEBUG -I"C:/rlibs/3.4.3/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/HYApp/Rtools3.4/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA1/R/R-341.3/include" -DNDEBUG -I"C:/rlibs/3.4.3/Rcpp/include" -O2 -Wall -mtune=generic -c smith_waterman_matrix.cpp -o smith_waterman_matrix.o
C:/HYApp/Rtools3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o text.alignment.dll tmp.def RcppExports.o smith_waterman_matrix.o -LC:/PROGRA1/R/R-341.3/bin/x64 -lR
installing to C:/rlibs/3.4.3/text.alignment/libs/x64
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
converting help for package 'text.alignment'
finding HTML links ... done
smith_waterman html
smith_waterman_misaligned html
smith_waterman_pairwise html
tokenize_letters html
tokenize_spaces_punct html
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error in load(name, envir = .GlobalEnv) :
bad restore file magic number (file may be corrupted) -- no data loaded
Calls: sys.load.image -> load
In addition: Warning message:
file '.RData' has magic number 'RDX3'
Use of save versions prior to 2 is deprecated
Execution halted
*** arch - x64
Error in load(name, envir = .GlobalEnv) :
bad restore file magic number (file may be corrupted) -- no data loaded
Calls: sys.load.image -> load
In addition: Warning message:
file '.RData' has magic number 'RDX3'
Use of save versions prior to 2 is deprecated
Execution halted
ERROR: loading failed for 'i386', 'x64'

  • removing 'C:/rlibs/3.4.3/text.alignment'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/PROGRA1/R/R-341.3/bin/x64/R" CMD INSTALL -l "C:\rlibs\3.4.3" C:\Users\araujo\AppData\Local\Temp\RtmpY3sj17/downloaded_packages/text.alignment_0.1.2.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘text.alignment’ had non-zero exit status

Any ideas how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions