Анализ данных с использованием GRASS GIS и R
-
- Bot
- Сообщения: 276
- Зарегистрирован: 03 фев 2008, 23:13
- Репутация: 3
Анализ данных с использованием GRASS GIS и R
Обсуждение статьи "Анализ данных с использованием GRASS GIS и R"
http://gis-lab.info/qa/grass-r.html
http://gis-lab.info/qa/grass-r.html
-
- Гуру
- Сообщения: 4142
- Зарегистрирован: 15 окт 2010, 08:33
- Репутация: 1102
- Ваше звание: программист
- Откуда: Казань
Re: Анализ данных с использованием GRASS GIS и R
К сожалению,
не отличается для R от
см. вывод summary()
учите матчасть (в on-line документации R. An Introduction to R, раздел 11-Statistical models in R ). Если не поставили доки при инсталляции, поставьте.
для построения квадратичной регрессии нужно писать
а еще лучше забыть, чему учили в начальной школе прошлого века. и использовать gam() - Genaralized Additive Model из пакета mgcv
Код: Выделить всё
model2 <- lm(relief_vec ~ modis_vec + modis_vec^2)
Код: Выделить всё
model <- lm(modis_vec ~ relief_vec)
учите матчасть (в on-line документации R. An Introduction to R, раздел 11-Statistical models in R ). Если не поставили доки при инсталляции, поставьте.
для построения квадратичной регрессии нужно писать
Код: Выделить всё
model2 <- lm(relief_vec ~ modis_vec + I(modis_vec^2))
Код: Выделить всё
ср.
> x<-rnorm(100)
> y<-1+2*x+x^2+rnorm(0,0.4)
> y<-1+2*x+x^2+rnorm(100,0,0.4)
> summary(lm(y~x))
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-1.7111 -0.7925 -0.5011 0.4200 5.8209
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.8565 0.1285 14.44 <2e-16 ***
x 2.1354 0.1355 15.76 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.279 on 98 degrees of freedom
Multiple R-squared: 0.717, Adjusted R-squared: 0.7141
F-statistic: 248.2 on 1 and 98 DF, p-value: < 2.2e-16
> summary(lm(y~x+x^2))
Call:
lm(formula = y ~ x + x^2)
Residuals:
Min 1Q Median 3Q Max
-1.7111 -0.7925 -0.5011 0.4200 5.8209
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.8565 0.1285 14.44 <2e-16 ***
x 2.1354 0.1355 15.76 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.279 on 98 degrees of freedom
Multiple R-squared: 0.717, Adjusted R-squared: 0.7141
F-statistic: 248.2 on 1 and 98 DF, p-value: < 2.2e-16
> summary(lm(y~x+I(x^2)))
Call:
lm(formula = y ~ x + I(x^2))
Residuals:
Min 1Q Median 3Q Max
-0.80357 -0.23026 -0.03363 0.28621 0.71228
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.94971 0.04568 20.79 <2e-16 ***
x 1.97812 0.03895 50.79 <2e-16 ***
I(x^2) 1.02495 0.03080 33.28 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.3647 on 97 degrees of freedom
Multiple R-squared: 0.9772, Adjusted R-squared: 0.9767
F-statistic: 2079 on 2 and 97 DF, p-value: < 2.2e-16
>
- Максим Дубинин
- MindingMyOwnBusiness
- Сообщения: 9129
- Зарегистрирован: 06 окт 2003, 20:20
- Репутация: 748
- Ваше звание: NextGIS
- Откуда: Москва
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
Ха, это моя вина, всегда забываю взять квадратичный член в I(). Спасибо за толковую коррекцию и советы.gamm писал(а):К сожалению,
Код: Выделить всё
model2 <- lm(relief_vec ~ modis_vec + modis_vec^2)
пристегивайтесь, турбулентность прямо по курсу
- SS_Rebelious
- Гуру
- Сообщения: 1304
- Зарегистрирован: 24 фев 2009, 16:51
- Репутация: 99
- Ваше звание: GIS pro-fan
- Откуда: Lahti / Газ-ПУТИНбург
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
однако при попытке установки от пользователя,Установка пакетов в среде R не должна вызвать каких-либо трудностей,
Код: Выделить всё
> install.packages("spgrass6", "gstat", dependencies = TRUE)
Предупреждение в install.packages("spgrass6", "gstat", dependencies = TRUE) :
'lib = "gstat"' не для записи
Ошибка в install.packages("spgrass6", "gstat", dependencies = TRUE) :
не могу установить пакеты
Код: Выделить всё
Предупреждение в install.packages("spgrass6", "gstat", dependencies = TRUE) :
'lib = "gstat"' не для записи
Не хотите ли Вы создать персональную библиотеку
'~/R/x86_64-unknown-linux-gnu-library/2.12'
для того чтобы инсталлировать пакеты в нее? (y/n) y
...
* installing *source* package ‘bitops’ ...
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c bit-ops.c -o bit-ops.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c cksum.c -o cksum.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o bitops.so bit-ops.o cksum.o -L/usr/lib64/R/lib -lR
устанавливаю в /root/R/x86_64-unknown-linux-gnu-library/2.12/bitops/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (bitops)
* installing *source* package ‘sp’ ...
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c Rcentroid.c -o Rcentroid.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c gcdist.c -o gcdist.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c init.c -o init.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c pip.c -o pip.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c pip2.c -o pip2.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sp_xports.c -o sp_xports.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c surfaceArea.c -o surfaceArea.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c zerodist.c -o zerodist.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o sp.so Rcentroid.o gcdist.o init.o pip.o pip2.o sp_xports.o surfaceArea.o zerodist.o -L/usr/lib64/R/lib -lR
устанавливаю в /root/R/x86_64-unknown-linux-gnu-library/2.12/sp/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (sp)
* installing *source* package ‘XML’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for sed... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/root/R/x86_64-unknown-linux-gnu-library/2.12/XML’
* installing *source* package ‘rgdal’ ...
gdal-config: gdal-config
./configure: line 1311: gdal-config: command not found
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries, you can
download the source from http://www.gdal.org/
If you have installed the GDAL libraries, then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. If not, use:
--configure-args='--with-gdal-config=/usr/local/bin/gdal-config' echo with appropriate values for your installation.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/root/R/x86_64-unknown-linux-gnu-library/2.12/rgdal’
ERROR: dependencies ‘rgdal’, ‘XML’ are not available for package ‘spgrass6’
* removing ‘/root/R/x86_64-unknown-linux-gnu-library/2.12/spgrass6’
Скачанные пакеты находятся в
‘/tmp/Rtmpa3FNci/downloaded_packages’
Предупреждения
1: In install.packages("spgrass6", "gstat", dependencies = TRUE) :
установка пакета 'XML' имеет ненулевой статус выхода
2: In install.packages("spgrass6", "gstat", dependencies = TRUE) :
установка пакета 'rgdal' имеет ненулевой статус выхода
3: In install.packages("spgrass6", "gstat", dependencies = TRUE) :
установка пакета 'spgrass6' имеет ненулевой статус выхода
> library(spgrass6)
Ошибка в library(spgrass6) : нет пакета под названием 'spgrass6'
>
Look for something long enough, and you will find it. Look for something without understanding, and it will find you...
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
-
- Гуру
- Сообщения: 810
- Зарегистрирован: 22 авг 2007, 14:58
- Репутация: 123
- Откуда: Казань
Re: Анализ данных с использованием GRASS GIS и R
Как я понимаю, главная проблема описана тут:SS_Rebelious писал(а):однако при попытке установки от пользователя <...>Установка пакетов в среде R не должна вызвать каких-либо трудностей,
Код: Выделить всё
<...>
* installing *source* package ‘rgdal’ ...
gdal-config: gdal-config
./configure: line 1311: gdal-config: command not found
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries, you can
download the source from http://www.gdal.org/
If you have installed the GDAL libraries, then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. <...>
- SS_Rebelious
- Гуру
- Сообщения: 1304
- Зарегистрирован: 24 фев 2009, 16:51
- Репутация: 99
- Ваше звание: GIS pro-fan
- Откуда: Lahti / Газ-ПУТИНбург
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
Не прошло и года, как я смог-таки установить "spgrass6" и "gstat"
libgdal-dev я поставил, помимо этого были доустановлены следующие пакеты, существенно помогшие R адаптироваться к openSUSE: xorg-x11-devel, mesa-devel, gcc-c++, libpng-devel, tcltk, возможно они тоже кое в чём помогли.
Для установки "spgrass6" дополнительно пришлось устанавливать libxml2-dev, так как его требовал пакет "XML", необходимый для "spgrass6".
Но счастья по прежнему нет. В grass командуем R и получаем ошибку:
Лог установки "spgrass6":
При установке "gstat" возникли проблемы с установкой пакетов "rJava" и "cshapes", необходимых для "gstat". К счастью в моём случае всё было достаточно просто, в логе установки "rJava" гооврилось о том, что R не сконфигурирован с поддержкой Java и чтобы это исправить надо выполнить команду "# R CMD javareconf" (выйти из R и запустить её от рута). Для запущенных случаев надо в этой команде прописывать необходимые пути:
# R CMD javareconf JAVAC=/usr/lib/jvm/java-6-openjdk/jre/../bin/javac JAR=/usr/bin/jar JAVAH=/usr/bin/javah
После успешной установки "rJava", "cshapes" установился сам собой без лишних телодвижений)))
Ещё у меня много предупреждений в логе установки "gstat"(хотя вроде библиотека установилась), и они не особо гуглятся
Стоит ли мне волноваться по их поводу?

libgdal-dev я поставил, помимо этого были доустановлены следующие пакеты, существенно помогшие R адаптироваться к openSUSE: xorg-x11-devel, mesa-devel, gcc-c++, libpng-devel, tcltk, возможно они тоже кое в чём помогли.
Для установки "spgrass6" дополнительно пришлось устанавливать libxml2-dev, так как его требовал пакет "XML", необходимый для "spgrass6".
Но счастья по прежнему нет. В grass командуем R и получаем ошибку:
Код: Выделить всё
R
Fatal error: ?? ?????? ?????? '--save', '--no-save' ??? '--vanilla'
Код: Выделить всё
> install.packages("spgrass6", dependencies=TRUE)
Устанавливаю пакеты в ‘/root/R/x86_64-unknown-linux-gnu-library/2.13’
(потому что ‘lib’ не определено)
пробую URL 'http://cran.gis-lab.info/src/contrib/spgrass6_0.6-27.tar.gz'
Content type 'application/x-gzip' length 341916 bytes (333 Kb)
открытие URL
==================================================
downloaded 333 Kb
* installing *source* package ‘spgrass6’ ...
** R
** inst
** preparing package for lazy loading
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.1, released 2011/07/09
Path to GDAL shared files: /usr/share/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (spgrass6)
# R CMD javareconf JAVAC=/usr/lib/jvm/java-6-openjdk/jre/../bin/javac JAR=/usr/bin/jar JAVAH=/usr/bin/javah
После успешной установки "rJava", "cshapes" установился сам собой без лишних телодвижений)))
Ещё у меня много предупреждений в логе установки "gstat"(хотя вроде библиотека установилась), и они не особо гуглятся

Спойлер
Код: Выделить всё
> install.packages("gstat", dependencies = TRUE)
Устанавливаю пакеты в ‘/root/R/x86_64-unknown-linux-gnu-library/2.13’
(потому что ‘lib’ не определено)
пробую URL 'http://cran.gis-lab.info/src/contrib/gstat_1.0-1.tar.gz'
Content type 'application/x-gzip' length 1815614 bytes (1.7 Mb)
открытие URL
==================================================
downloaded 1.7 Mb
* installing *source* package ‘gstat’ ...
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for 8-bit clean memcmp... yes
checking for vprintf... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for drand48... yes
checking for gettimeofday... yes
checking whether byte ordering is bigendian... no
checking for memory.h... yes
checking for ANSI C header files... (cached) yes
checking for gcc option to accept ANSI C...
checking for function prototypes... yes
checking for working const... (cached) yes
checking for complex.h... yes
checking for malloc.h... yes
checking for varargs.h... no
checking for size_t... yes
checking for working const... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for u_int
computing machine epsilon(s)
gcc -o macheps ./src/meschach/dmacheps.c
gcc -o macheps ./src/meschach/fmacheps.c
computing M_MAX_INT
gcc -o maxint maxint.c
checking char \\0 vs. float zeros
checking for bcopy... yes
checking for bzero... yes
checking for function prototypes
checking for function prototypes in structures
updating cache ./config.cache
creating ./config.status
creating makefile
creating src/config.h
creating src/machine.h
** libs
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c block.c -o block.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c chfactor.c -o chfactor.o
chfactor.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c copy.c -o copy.o
copy.c:27:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c data.c -o data.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c direct.c -o direct.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c err.c -o err.o
err.c:34:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c fit.c -o fit.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c gcdist.c -o gcdist.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c getest.c -o getest.o
getest.c: In function ‘get_est’:
getest.c:85:17: warning: comparison between ‘MODE’ and ‘enum <anonymous>’
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c gls.c -o gls.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c glvars.c -o glvars.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c hsehldr.c -o hsehldr.o
hsehldr.c:36:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c init.c -o init.o
init.c:33:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c ivecop.c -o ivecop.o
ivecop.c: In function ‘iv_resize’:
ivecop.c:112:15: warning: operation on ‘iv->ive’ may be undefined
ivecop.c: In function ‘iv_finput’:
ivecop.c:238:6: warning: call to function ‘iiv_finput’ without a real prototype
ivecop.c:235:10: note: ‘iiv_finput’ was declared here
ivecop.c:240:6: warning: call to function ‘biv_finput’ without a real prototype
ivecop.c:235:24: note: ‘biv_finput’ was declared here
ivecop.c: At top level:
ivecop.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c lex.c -o lex.o
<stdout>:1346:17: warning: ‘yyunput’ defined but not used
<stdout>:1387:16: warning: ‘input’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c lm.c -o lm.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c lufactor.c -o lufactor.o
lufactor.c:32:13: warning: ‘rcsid’ defined but not used
lufactor.c: In function ‘LUcondest’:
lufactor.c:221:10: warning: ‘cond_est’ may be used uninitialized in this function
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c machine.c -o machine.o
machine.c:34:14: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c mapio.c -o mapio.o
mapio.c: In function ‘write_gnuplot_binary’:
mapio.c:1317:8: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
mapio.c:1321:9: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
mapio.c:1326:9: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
mapio.c:1334:10: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c matop.c -o matop.o
matop.c:33:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c matrixio.c -o matrixio.o
matrixio.c: In function ‘m_finput’:
matrixio.c:79:4: warning: call to function ‘im_finput’ without a real prototype
matrixio.c:76:18: note: ‘im_finput’ was declared here
matrixio.c:81:4: warning: call to function ‘bm_finput’ without a real prototype
matrixio.c:76:31: note: ‘bm_finput’ was declared here
matrixio.c: In function ‘px_finput’:
matrixio.c:189:4: warning: call to function ‘ipx_finput’ without a real prototype
matrixio.c:186:18: note: ‘ipx_finput’ was declared here
matrixio.c:191:4: warning: call to function ‘bpx_finput’ without a real prototype
matrixio.c:186:32: note: ‘bpx_finput’ was declared here
matrixio.c: In function ‘v_finput’:
matrixio.c:299:4: warning: call to function ‘ifin_vec’ without a real prototype
matrixio.c:296:18: note: ‘ifin_vec’ was declared here
matrixio.c:301:4: warning: call to function ‘bfin_vec’ without a real prototype
matrixio.c:296:30: note: ‘bfin_vec’ was declared here
matrixio.c: At top level:
matrixio.c:34:13: warning: ‘rcsid’ defined but not used
matrixio.c: In function ‘im_finput’:
matrixio.c:133:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c meminfo.c -o meminfo.o
meminfo.c:44:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c memory.c -o memory.o
memory.c: In function ‘m_resize’:
memory.c:286:13: warning: operation on ‘A->me’ may be undefined
memory.c:302:15: warning: operation on ‘A->base’ may be undefined
memory.c: In function ‘px_resize’:
memory.c:420:14: warning: operation on ‘px->pe’ may be undefined
memory.c: In function ‘v_resize’:
memory.c:465:13: warning: operation on ‘x->ve’ may be undefined
memory.c: In function ‘v_get_vars’:
memory.c:508:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘iv_get_vars’:
memory.c:525:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘m_get_vars’:
memory.c:541:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘px_get_vars’:
memory.c:557:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘v_resize_vars’:
memory.c:589:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘iv_resize_vars’:
memory.c:607:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘m_resize_vars’:
memory.c:623:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘px_resize_vars’:
memory.c:640:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘v_free_vars’:
memory.c:671:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘iv_free_vars’:
memory.c:691:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘px_free_vars’:
memory.c:711:4: warning: suggest parentheses around assignment used as truth value
memory.c: In function ‘m_free_vars’:
memory.c:730:4: warning: suggest parentheses around assignment used as truth value
memory.c: At top level:
memory.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c memstat.c -o memstat.o
memstat.c: In function ‘mem_stat_reg_vars’:
memstat.c:340:4: warning: suggest parentheses around assignment used as truth value
memstat.c: At top level:
memstat.c:42:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c msim.c -o msim.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c norm.c -o norm.o
norm.c:30:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c nsearch.c -o nsearch.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c otherio.c -o otherio.o
otherio.c:31:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c parse.c -o parse.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c plot.c -o plot.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c polygon.c -o polygon.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c pqueue.c -o pqueue.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c predict.c -o predict.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c pxop.c -o pxop.o
pxop.c:33:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c qrfactor.c -o qrfactor.o
qrfactor.c:41:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c random.c -o random.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c read.c -o read.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c reml.c -o reml.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c report.c -o report.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c s.c -o s.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c select.c -o select.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sem.c -o sem.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sim.c -o sim.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c solve.c -o solve.o
solve.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sparse.c -o sparse.o
sparse.c: In function ‘sp_set_val’:
sparse.c:98:10: warning: operation on ‘r->elt’ may be undefined
sparse.c: In function ‘sp_copy2’:
sparse.c:678:16: warning: operation on ‘OUT->row’ may be undefined
sparse.c: In function ‘sp_resize’:
sparse.c:755:14: warning: operation on ‘A->row’ may be undefined
sparse.c:782:20: warning: operation on ‘A->start_row’ may be undefined
sparse.c:783:20: warning: operation on ‘A->start_idx’ may be undefined
sparse.c: In function ‘sp_get_vars’:
sparse.c:867:4: warning: suggest parentheses around assignment used as truth value
sparse.c: In function ‘sp_resize_vars’:
sparse.c:897:4: warning: suggest parentheses around assignment used as truth value
sparse.c: In function ‘sp_free_vars’:
sparse.c:926:4: warning: suggest parentheses around assignment used as truth value
sparse.c: At top level:
sparse.c:37:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sparseio.c -o sparseio.o
sparseio.c:35:13: warning: ‘rcsid’ defined but not used
sparseio.c: In function ‘sp_finput’:
sparseio.c:262:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c spbkp.c -o spbkp.o
spbkp.c:34:13: warning: ‘rcsid’ defined but not used
spbkp.c: In function ‘spBKPfactor’:
spbkp.c:562:25: warning: ‘onebyone’ may be used uninitialized in this function
spbkp.c:565:10: warning: ‘best_deg’ may be used uninitialized in this function
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c spchfctr.c -o spchfctr.o
spchfctr.c:33:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c splufctr.c -o splufctr.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c sprow.c -o sprow.o
sprow.c: In function ‘sprow_xpd’:
sprow.c:201:14: warning: operation on ‘r->elt’ may be undefined
sprow.c: In function ‘sprow_resize’:
sprow.c:247:14: warning: operation on ‘r->elt’ may be undefined
sprow.c: In function ‘sprow_set_val’:
sprow.c:691:17: warning: operation on ‘r->elt’ may be undefined
sprow.c: At top level:
sprow.c:37:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c spswap.c -o spswap.o
spswap.c:33:13: warning: ‘rcsid’ defined but not used
spswap.c: In function ‘chase_col’:
spswap.c:139:14: warning: ‘e’ may be used uninitialized in this function
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c stat.c -o stat.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c submat.c -o submat.o
submat.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c userio.c -o userio.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c utils.c -o utils.o
utils.c: In function ‘grass’:
utils.c:864:3: warning: suggest parentheses around ‘&&’ within ‘||’
utils.c: At top level:
utils.c:745:18: warning: ‘what_is_file’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c vario.c -o vario.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c vario_fn.c -o vario_fn.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c vario_io.c -o vario_io.o
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c vecop.c -o vecop.o
vecop.c: In function ‘v_linlist’:
vecop.c:280:4: warning: suggest parentheses around assignment used as truth value
vecop.c: At top level:
vecop.c:32:13: warning: ‘rcsid’ defined but not used
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c version.c -o version.o
version.c:69:1: warning: "/*" within comment
version.c:70:1: warning: "/*" within comment
version.c:71:1: warning: "/*" within comment
version.c:72:1: warning: "/*" within comment
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c writecmd.c -o writecmd.o
writecmd.c: In function ‘sprint_glvars’:
writecmd.c:205:2: warning: comparison with string literal results in unspecified behavior
writecmd.c:209:2: warning: comparison with string literal results in unspecified behavior
writecmd.c:210:2: warning: null argument where non-null required (argument 1)
writecmd.c:210:2: warning: null argument where non-null required (argument 1)
writecmd.c:210:2: warning: null argument where non-null required (argument 2)
writecmd.c:210:2: warning: null argument where non-null required (argument 2)
writecmd.c:210:2: warning: null argument where non-null required (argument 1)
writecmd.c:210:2: warning: null argument where non-null required (argument 1)
writecmd.c:210:2: warning: null argument where non-null required (argument 2)
writecmd.c:210:2: warning: null argument where non-null required (argument 2)
writecmd.c:211:2: warning: null argument where non-null required (argument 1)
writecmd.c:211:2: warning: null argument where non-null required (argument 1)
writecmd.c:211:2: warning: null argument where non-null required (argument 2)
writecmd.c:211:2: warning: null argument where non-null required (argument 2)
writecmd.c:211:2: warning: null argument where non-null required (argument 1)
writecmd.c:211:2: warning: null argument where non-null required (argument 1)
writecmd.c:211:2: warning: null argument where non-null required (argument 2)
writecmd.c:211:2: warning: null argument where non-null required (argument 2)
writecmd.c:217:2: warning: comparison with string literal results in unspecified behavior
writecmd.c:223:2: warning: null argument where non-null required (argument 1)
writecmd.c:223:2: warning: null argument where non-null required (argument 1)
writecmd.c:223:2: warning: null argument where non-null required (argument 2)
writecmd.c:223:2: warning: null argument where non-null required (argument 2)
writecmd.c:223:2: warning: null argument where non-null required (argument 1)
writecmd.c:223:2: warning: null argument where non-null required (argument 1)
writecmd.c:223:2: warning: null argument where non-null required (argument 2)
writecmd.c:223:2: warning: null argument where non-null required (argument 2)
writecmd.c:225:2: warning: comparison with string literal results in unspecified behavior
writecmd.c:227:2: warning: comparison with string literal results in unspecified behavior
writecmd.c:228:2: warning: null argument where non-null required (argument 1)
writecmd.c:228:2: warning: null argument where non-null required (argument 1)
writecmd.c:228:2: warning: null argument where non-null required (argument 2)
writecmd.c:228:2: warning: null argument where non-null required (argument 2)
writecmd.c:228:2: warning: null argument where non-null required (argument 1)
writecmd.c:228:2: warning: null argument where non-null required (argument 1)
writecmd.c:228:2: warning: null argument where non-null required (argument 2)
writecmd.c:228:2: warning: null argument where non-null required (argument 2)
gcc -std=gnu99 -I/usr/lib64/R/include -I/usr/local/include -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c xvalid.c -o xvalid.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o gstat.so block.o chfactor.o copy.o data.o direct.o err.o fit.o gcdist.o getest.o gls.o glvars.o hsehldr.o init.o ivecop.o lex.o lm.o lufactor.o machine.o mapio.o matop.o matrixio.o meminfo.o memory.o memstat.o msim.o norm.o nsearch.o otherio.o parse.o plot.o polygon.o pqueue.o predict.o pxop.o qrfactor.o random.o read.o reml.o report.o s.o select.o sem.o sim.o solve.o sparse.o sparseio.o spbkp.o spchfctr.o splufctr.o sprow.o spswap.o stat.o submat.o userio.o utils.o vario.o vario_fn.o vario_io.o vecop.o version.o writecmd.o xvalid.o -L/usr/lib64/R/lib -lR
устанавливаю в /root/R/x86_64-unknown-linux-gnu-library/2.13/gstat/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
Loading required package: zoo
Loading required package: xts
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (gstat)
Look for something long enough, and you will find it. Look for something without understanding, and it will find you...
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
-
- Гуру
- Сообщения: 2627
- Зарегистрирован: 29 мар 2007, 14:12
- Репутация: 34
- Откуда: Ukraine
Re: Анализ данных с использованием GRASS GIS и R
Я не такой уж большой спец, но думаю, что ничего страшного в этих предупреждениях нет.SS_Rebelious писал(а):Ещё у меня много предупреждений в логе установки "gstat"(хотя вроде библиотека установилась), и они не особо гуглятсяСтоит ли мне волноваться по их поводу?
- SS_Rebelious
- Гуру
- Сообщения: 1304
- Зарегистрирован: 24 фев 2009, 16:51
- Репутация: 99
- Ваше звание: GIS pro-fan
- Откуда: Lahti / Газ-ПУТИНбург
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
Пораскинув мозгами, я нашёл одну из причин возникших проблем "spgrass6":
Почему-то эта библиотека не хочет ставиться в директорию, куда ставятся остальные пакеты R. Пришлось ставить её из-под юзера, чтобы она была мне доступна.
В консоли GRASS при попытке вызова R появляется всё та же ошибка, что описана в моём предыдущем посте. Однако, если запускать GRASS из консоли, и в консоли же после запуска грасс запускать R, то вроде всё работает.
Код: Выделить всё
Устанавливаю пакеты в ‘/root/R/x86_64-unknown-linux-gnu-library/2.13’
(потому что ‘lib’ не определено)
В консоли GRASS при попытке вызова R появляется всё та же ошибка, что описана в моём предыдущем посте. Однако, если запускать GRASS из консоли, и в консоли же после запуска грасс запускать R, то вроде всё работает.
Код: Выделить всё
GRASS 6.4.1 (testlocation):~ > R
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-unknown-linux-gnu (64-bit)
......................
> library(spgrass6)
Загрузка требуемого пакета: sp
Загрузка требуемого пакета: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.1, released 2011/07/09
Path to GDAL shared files: /usr/share/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)
Загрузка требуемого пакета: XML
GRASS GIS interface loaded with GRASS version: 6.4.1
and location: testlocation
Look for something long enough, and you will find it. Look for something without understanding, and it will find you...
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
-
- Гуру
- Сообщения: 810
- Зарегистрирован: 22 авг 2007, 14:58
- Репутация: 123
- Откуда: Казань
Re: Анализ данных с использованием GRASS GIS и R
(почесывая в затылке) Интересно, а как еще кроме этого можно было R из-под GRASS запускать?..SS_Rebelious писал(а):Однако, если запускать GRASS из консоли, и в консоли же после запуска грасс запускать R, то вроде всё работает.
- SS_Rebelious
- Гуру
- Сообщения: 1304
- Зарегистрирован: 24 фев 2009, 16:51
- Репутация: 99
- Ваше звание: GIS pro-fan
- Откуда: Lahti / Газ-ПУТИНбург
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
В статье написано:KolesovDmitry писал(а):Интересно, а как еще кроме этого можно было R из-под GRASS запускать?..
Мне в первую очередь на ум пришла Command Console менеджера слоёв...из командной строки GRASS загружаем R
Look for something long enough, and you will find it. Look for something without understanding, and it will find you...
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
-
- Гуру
- Сообщения: 5173
- Зарегистрирован: 26 сен 2009, 16:26
- Репутация: 792
- Ваше звание: званий не имею
- Откуда: Москва
Re: Анализ данных с использованием GRASS GIS и R
Как выход, можно было бы использовать OSGeo Live с готовыми GRASS+R.
Или идея состоит именно в установке всего на OpenSUSE? А может, все проблемы от конфликтов библиотек x86 и x86_64? Система-то какая, 64bit?
Или идея состоит именно в установке всего на OpenSUSE? А может, все проблемы от конфликтов библиотек x86 и x86_64? Система-то какая, 64bit?
Последний раз редактировалось Александр Мурый 09 авг 2011, 19:33, всего редактировалось 1 раз.
Редактор материалов, модератор форума
- SS_Rebelious
- Гуру
- Сообщения: 1304
- Зарегистрирован: 24 фев 2009, 16:51
- Репутация: 99
- Ваше звание: GIS pro-fan
- Откуда: Lahti / Газ-ПУТИНбург
- Контактная информация:
Re: Анализ данных с использованием GRASS GIS и R
Да, именно в установке на openSUSE.amuriy писал(а):Или идея состоит именно в установке всего на OpenSUSE?
Ситема х64.amuriy писал(а):Система-то какая, 64bit?
Look for something long enough, and you will find it. Look for something without understanding, and it will find you...
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
"All paid jobs absorb and degrade the mind." Aristotle
If you take 1 step towards freedom it'll take 2 steps towards you!
-
- Гуру
- Сообщения: 5173
- Зарегистрирован: 26 сен 2009, 16:26
- Репутация: 792
- Ваше звание: званий не имею
- Откуда: Москва
Re: Анализ данных с использованием GRASS GIS и R
На всякий: здесь есть по теме OpenSUSE + R
Это и есть верный и вообще единственно возможный (насколько я знаю) способ запуска R из GRASS.если запускать GRASS из консоли, и в консоли же после запуска грасс запускать R
Редактор материалов, модератор форума
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 0 гостей