[R] cannot load .sav-files in R 3.4.0

Siouxsie siouxsie at posteo.ch
Wed May 3 13:42:17 CEST 2017


unfortunately not.
i tried:
> devtools::install_github( "hadley/dplyr" )
and got this:
Downloading GitHub repo hadley/dplyr at master
from URL https://api.github.com/repos/hadley/dplyr/zipball/master
Installing dplyr
Installing 1 package: bindrcpp
Installing package into ‘\\unetna01/mandersk$/Daten/R/win-library/3.3’
(as ‘lib’ is unspecified)
versuche URL 
'https://stat.ethz.ch/CRAN/bin/windows/contrib/3.3/bindrcpp_0.1.zip'
Content type 'application/zip' length 609682 bytes (595 KB)
downloaded 595 KB

package ‘bindrcpp’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
         
C:\Users\mandersk\AppData\Local\Temp\RtmpoHHW84\downloaded_packages
Installing 1 package: pkgconfig
Installing package into ‘\\unetna01/mandersk$/Daten/R/win-library/3.3’
(as ‘lib’ is unspecified)
versuche URL 
'https://stat.ethz.ch/CRAN/bin/windows/contrib/3.3/pkgconfig_2.0.1.zip'
Content type 'application/zip' length 19743 bytes (19 KB)
downloaded 19 KB

package ‘pkgconfig’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
         
C:\Users\mandersk\AppData\Local\Temp\RtmpoHHW84\downloaded_packages
Installing 1 package: plogr
Installing package into ‘\\unetna01/mandersk$/Daten/R/win-library/3.3’
(as ‘lib’ is unspecified)
versuche URL 
'https://stat.ethz.ch/CRAN/bin/windows/contrib/3.3/plogr_0.1-1.zip'
Content type 'application/zip' length 17642 bytes (17 KB)
downloaded 17 KB

package ‘plogr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
         
C:\Users\mandersk\AppData\Local\Temp\RtmpoHHW84\downloaded_packages
Downloading GitHub repo hadley/rlang at b22ce1c
from URL https://api.github.com/repos/hadley/rlang/zipball/b22ce1c
Installing rlang
"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save 
--no-restore --quiet CMD  \
   INSTALL  \
   
"C:/Users/mandersk/AppData/Local/Temp/RtmpoHHW84/devtoolsed02519519f/hadley-rlang-b22ce1c" 
  \
   --library="\\unetna01/mandersk$/Daten/R/win-library/3.3" 
--install-tests

* installing *source* package 'rlang' ...
** libs

*** arch - i386
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c attrs.c -o attrs.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c capture.c -o capture.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c eval.c -o eval.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c export.c -o export.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c formula.c -o formula.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c init.c -o init.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c internals.c -o internals.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c pairlist.c -o pairlist.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c replace-na.c -o replace-na.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c sexp.c -o sexp.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c splice.c -o splice.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c symbol.c -o symbol.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c unquote.c -o unquote.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 
-mtune=core2 -c utils.c -o utils.o
c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o rlang.dll 
tmp.def attrs.o capture.o eval.o export.o formula.o init.o internals.o 
pairlist.o replace-na.o sexp.o splice.o symbol.o unquote.o utils.o 
-Ld:/Compiler/gcc-4.9.3/local330/lib/i386 
-Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.3/bin/i386 
-lR
installing to 
\\unetna01/mandersk$/Daten/R/win-library/3.3/rlang/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c attrs.c -o attrs.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c capture.c -o capture.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c eval.c -o eval.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c export.c -o export.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c formula.c -o formula.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c init.c -o init.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c internals.c -o internals.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c pairlist.c -o pairlist.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c replace-na.c -o replace-na.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c sexp.c -o sexp.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c splice.c -o splice.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c symbol.c -o symbol.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c unquote.c -o unquote.o
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG  
    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 
-mtune=core2 -c utils.c -o utils.o
c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rlang.dll 
tmp.def attrs.o capture.o eval.o export.o formula.o init.o internals.o 
pairlist.o replace-na.o sexp.o splice.o symbol.o unquote.o utils.o 
-Ld:/Compiler/gcc-4.9.3/local330/lib/x64 
-Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.3/bin/x64 
-lR
installing to 
\\unetna01/mandersk$/Daten/R/win-library/3.3/rlang/libs/x64
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, 
logical.return = TRUE)
   there is no package called 'rlang'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
*** arch - x64
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, 
logical.return = TRUE)
   there is no package called 'rlang'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'i386', 'x64'
* removing '\\unetna01/mandersk$/Daten/R/win-library/3.3/rlang'
Fehler: Command failed (1)


Am 02.05.2017 15:42 schrieb Anthony Damico:
> are you able to install anything from github?  like
> 
> devtools::install_github( "hadley/dplyr" )
> 
> On Tue, May 2, 2017 at 9:36 AM, <katharina.manderscheid at posteo.de>
> wrote:
> 
>> unfortunately it failed with the installation of lodown:
>> 
>>> devtools::install_github("ajdamico/lodown")
>> Downloading GitHub repo ajdamico/lodown at master
>> from URL
>> https://api.github.com/repos/ajdamico/lodown/zipball/master [1]
>> Installing lodown
>> "C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ
>> --no-save
>> --no-restore --quiet CMD INSTALL
>> 
>> 
> "C:/Users/mandersk/AppData/Local/Temp/Rtmpch0aTn/devtools18f4305b4ab5/ajdamico-lodown-d235a3e"
>> 
>> --library="\unetna01/mandersk$/Daten/R/win-library/3.3"
>> --install-tests
>> 
>> * installing *source* package 'lodown' ...
>> ** R
>> ** inst
>> ** preparing package for lazy loading
>> ** help
>> *** installing help indices
>> ** building package indices
>> ** testing if installed package can be loaded
>> *** arch - i386
>> Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE,
>> logical.return = TRUE)
>> there is no package called 'lodown'
>> Fehler: Laden fehlgeschlagen
>> Ausführung angehalten
>> *** arch - x64
>> Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE,
>> logical.return = TRUE)
>> there is no package called 'lodown'
>> Fehler: Laden fehlgeschlagen
>> Ausführung angehalten
>> ERROR: loading failed for 'i386', 'x64'
>> * removing '\unetna01/mandersk$/Daten/R/win-library/3.3/lodown'
>> Error: Command failed (1)
>> 
>> Am 01.05.2017 18:15 schrieb Anthony Damico:
>> 
>> did my code work? thanks
>> 
>> On Mon, May 1, 2017 at 11:35 AM, <katharina.manderscheid at posteo.de>
>> wrote:
>> 
>> hi, thanks for the reply!
>> it always worked until 3.4.0. i got warning but they did not stop R
>> loading the file ...
>> 
>> Am 01.05.2017 16:10 schrieb Anthony Damico:
>> hi, i don't think foreign::read.spss or haven::read_spss have ever
>> worked with a handful of the ess files, but library(memisc) does.
>> you
>> are better off loading ess with library(lodown) because the drudge
>> work has already been done--
>> 
>> library(devtools)
>> devtools::install_github("ajdamico/lodown")
>> library(lodown)
>> ess_cat <- get_catalog( "ess" , output_dir = "C:/My
>> Directory/ESS"
>> )
>> 
>> # which entries do you want?
>> head(ess_cat)
>> 
>> # how about wave 7 only
>> sub_ess_cat <- subset( ess_cat , wave == 7 )
>> 
>> # replace the email address with whatever you registered with
>> lodown( "ess" , sub_ess_cat , your_email = "email at address.com"
>> )
>> 
>> x <- readRDS( "C:/My Directory/ESS/2014/ESS7csCH.rds" )
>> 
>> # looks good
>> head( x )
>> 
>> On Mon, May 1, 2017 at 6:22 AM, <katharina.manderscheid at posteo.de>
>> wrote:
>> 
>> after updating R from 3.3.3. to 3.4.0 i cannot import spss-data
>> files anymore. for the european social survey
>> (europeansocialsurvey.org [2] [1] [1]) i get this warning:
>> re-encoding from CP1252
>> Fehler in levels<-(*tmp*, value = if (nl == nL)
>> as.character(labels) else paste0(labels, :
>> factor level [3] is duplicated
>> Zusätzlich: Warnmeldung:
>> In read.spss(file, use.value.labels = use.value.labels,
>> to.data.frame = to.data.frame, :
>> //filepath/ESS7CH.sav: Unrecognized record type 7, subtype 18
>> encountered in system file
>> 
>> using the package foreign does the same.
>> 
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help [3] [2] [2]
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html [4] [3] [3]
>> and provide commented, minimal, self-contained, reproducible code.
>> 
>> Links:
>> ------
>> [1] http://europeansocialsurvey.org [2] [1]
>> [2] https://stat.ethz.ch/mailman/listinfo/r-help [3] [2]
>> [3] http://www.R-project.org/posting-guide.html [4] [3]
>> 
>> Links:
>> ------
>> [1] http://europeansocialsurvey.org [2]
>> [2] https://stat.ethz.ch/mailman/listinfo/r-help [3]
>> [3] http://www.R-project.org/posting-guide.html [4]
> 
> 
> 
> Links:
> ------
> [1] https://api.github.com/repos/ajdamico/lodown/zipball/master
> [2] http://europeansocialsurvey.org
> [3] https://stat.ethz.ch/mailman/listinfo/r-help
> [4] http://www.R-project.org/posting-guide.html



More information about the R-help mailing list