Can't install readspss on RStudio Cloud

Greetings, I have attempted to install readspss on RStudio Cloud, but it has failed.

I am enclosing the installation process along with the results below:

> install.packages("readspss")
Installing package into ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://JanMarvin.github.io/drat/src/contrib/readspss_0.16.1.tar.gz'
Content type 'application/gzip' length 91125 bytes (88 KB)
==================================================
downloaded 88 KB

* installing *source* package ‘readspss’ ...
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lssl -lcrypto
** libs
rm -f RcppExports.o boost_split.o fast_factor.o read_sav_encrypted.o read_sav_known_n.o read_sav_uncompress.o read_sav_unknown_n.o readpor.o readsav.o write_data.o write_sav_compress.o writepor.o writesav.o readspss.so
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c boost_split.cpp -o boost_split.o
In file included from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/bind/mem_fn.hpp:25,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/mem_fn.hpp:22,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/function/detail/prologue.hpp:18,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/function.hpp:30,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/split.hpp:16,
                 from boost_split.cpp:22:
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   48 | template<class T> T * get_pointer(std::auto_ptr<T> const& p)
      |                                        ^~~~~~~~
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/RcppCommon.h:53,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/Rcpp.h:27,
                 from boost_split.cpp:18:
/usr/include/c++/9/bits/unique_ptr.h:53:28: note: declared here
   53 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c fast_factor.cpp -o fast_factor.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c read_sav_encrypted.cpp -o read_sav_encrypted.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c read_sav_known_n.cpp -o read_sav_known_n.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c read_sav_uncompress.cpp -o read_sav_uncompress.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c read_sav_unknown_n.cpp -o read_sav_unknown_n.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c readpor.cpp -o readpor.o
g++ -std=gnu++14 -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG  -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I/usr/local/include   -fpic  -g -O2  -c readsav.cpp -o readsav.o
In file included from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/bind/mem_fn.hpp:25,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/mem_fn.hpp:22,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/function/detail/prologue.hpp:18,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/function.hpp:30,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/algorithm/string/split.hpp:16,
                 from readsav.cpp:26:
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   48 | template<class T> T * get_pointer(std::auto_ptr<T> const& p)
      |                                        ^~~~~~~~
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
                 from /usr/include/c++/9/locale:43,
                 from /usr/include/c++/9/iomanip:43,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/RcppCommon.h:53,
                 from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/Rcpp.h:27,
                 from readsav.cpp:18:
/usr/include/c++/9/bits/unique_ptr.h:53:28: note: declared here
   53 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [/opt/R/4.2.1/lib/R/etc/Makeconf:177: readsav.o] Error 1
ERROR: compilation failed for package ‘readspss’
* removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.2/readspss’
Warning in install.packages :
  installation of package ‘readspss’ had non-zero exit status

This usually happens when you run out of RAM, have in mind that free RStudio Cloud accounts have a 1GB RAM limit per project. If you have a paid account, you can increase this limit in your project settings.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.