Hi Gad,
@gabraham I am using the following to install the package: install_github("gabraham/plink2R/plink2R",repos = NULL)
It would be great if you can help resolve the issue.
R version: 3.5.1
Rstudio version: 1.1.456
Downloading GitHub repo gabraham/plink2R@master
from URL https://api.github.com/repos/gabraham/plink2R/zipball/master
Installing plink2R
"C:/PROGRA1/R/R-351.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/manven01/AppData/Local/Temp/RtmpUFFSUM/devtoolsf2c62c34267/gabraham-plink2R-d74be01/plink2R"
--library="C:/Users/manven01/Documents/R/win-library/3.5" --install-tests
- installing source package 'plink2R' ...
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-351.1/include" -DNDEBUG -I"C:/Users/manven01/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/manven01/Documents/R/win-library/3.5/RcppEigen/include" -O2 -Wall -mtune=generic -c data.cpp -o data.o
data.cpp: In constructor 'Data::Data(const char*, const char*, bool)':
data.cpp:9:21: error: 'time' was not declared in this scope
srand48(time(NULL));
^
data.cpp:9:22: error: 'srand48' was not declared in this scope
srand48(time(NULL));
^
data.cpp: In member function 'void Data::read_bed(int)':
data.cpp:243:31: error: 'drand48' was not declared in this scope
double r = drand48();
^
make: *** [data.o] Error 1
ERROR: compilation failed for package 'plink2R'
- removing 'C:/Users/manven01/Documents/R/win-library/3.5/plink2R'
In R CMD INSTALL
Installation failed: Command failed (1)
Hi Gad,
@gabraham I am using the following to install the package: install_github("gabraham/plink2R/plink2R",repos = NULL)
It would be great if you can help resolve the issue.
R version: 3.5.1
Rstudio version: 1.1.456
Downloading GitHub repo gabraham/plink2R@master
from URL https://api.github.com/repos/gabraham/plink2R/zipball/master
Installing plink2R
"C:/PROGRA
1/R/R-351.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL"C:/Users/manven01/AppData/Local/Temp/RtmpUFFSUM/devtoolsf2c62c34267/gabraham-plink2R-d74be01/plink2R"
--library="C:/Users/manven01/Documents/R/win-library/3.5" --install-tests
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA
1/R/R-351.1/include" -DNDEBUG -I"C:/Users/manven01/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/manven01/Documents/R/win-library/3.5/RcppEigen/include" -O2 -Wall -mtune=generic -c data.cpp -o data.odata.cpp: In constructor 'Data::Data(const char*, const char*, bool)':
data.cpp:9:21: error: 'time' was not declared in this scope
srand48(time(NULL));
^
data.cpp:9:22: error: 'srand48' was not declared in this scope
srand48(time(NULL));
^
data.cpp: In member function 'void Data::read_bed(int)':
data.cpp:243:31: error: 'drand48' was not declared in this scope
double r = drand48();
^
make: *** [data.o] Error 1
ERROR: compilation failed for package 'plink2R'
In R CMD INSTALL
Installation failed: Command failed (1)