Я пытаюсь выполнить следующую команду:
r CMD INSTALL RPostgreSQL_0.1-7.tar.gz
Я получаю следующее сообщение об ошибке:
* installing to library 'C:/.../R/win-library/2.13'
* installing *source* package 'RPostgreSQL' ...
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-213~1.1/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-213~1.1/etc/x64/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
x86_64-w64-mingw32-gcc -I"C:/PROGRA~1/R/R-213~1.1/include" -I"C:\Program Files\PostgreSQL\9.1"/include -O2 -Wall -std=gnu99 -c RS-DBI.c -o RS-DBI.o
x86_64-w64-mingw32-gcc -I"C:/PROGRA~1/R/R-213~1.1/include" -I"C:\Program Files\PostgreSQL\9.1"/include -O2 -Wall -std=gnu99 -c RS-PQescape.c -o RS-PQescape.o
x86_64-w64-mingw32-gcc -I"C:/PROGRA~1/R/R-213~1.1/include" -I"C:\Program Files\PostgreSQL\9.1"/include -O2 -Wall -std=gnu99 -c RS-PostgreSQL.c -o RS-PostgreSQL.o
x86_64-w64-mingw32-gcc -I"C:/PROGRA~1/R/R-213~1.1/include" -I"C:\Program Files\PostgreSQL\9.1"/include -O2 -Wall -std=gnu99 -c RS-pgsql-copy.c -o RS-pgsql-copy.o
x86_64-w64-mingw32-gcc -shared -s -static-libgcc -o RPostgreSQL.dll tmp.def RS-DBI.o RS-PQescape.o RS-PostgreSQL.o RS-pgsql-copy.o -LC:\Program Files\PostgreSQL\9.1/lib -llibpq -LC:/PROGRA~1/R/R-3~1.1/bin/x64 -lR
installing to C:/.../R/win-library/2.13/RPostgreSQL/libs/x64
** R
** inst
** preparing package for lazy loading
Error : package 'DBI' does not have a name space
ERROR: lazy loading failed for package 'RPostgreSQL'
Я установил DBI, используя
R CMD install DBI_0.1-10.tar.gz
и, похоже, работает нормально.
Я альтернативно попробовал
install.packages ( 'RPostgreSQL_0.1-7')
но получите
Предупреждающее сообщение:
В getDependencies (pkgs, зависимости, доступные, lib):
пакет "RPostgreSQL_0.1-7" недоступен (для версии R 2.13.1)