[R] How to catch error message

2010-11-26 Thread Alla Bulashevska
Dear R users,
i would like to catch error message (coming after
unsuccessful database query) so that the script will
process further. How can I manage this?
Thank you in Advance,
Alla.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error: unable to load shared library tcltk.so

2010-09-24 Thread Alla Bulashevska
Dear R users,
when trying 
> library("tcltk")
i become following error: 
Loading Tcl/Tk interface ... Error : .onLoad failed in
loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared library
'/usr/local/R/R-2.11.1/lib/R/library/tcltk/libs/tcltk.so':
  libtcl8.4.so.0: cannot open shared object file: No such
file or directory
Error: package/namespace load failed for 'tcltk'

Will be very greatful for you help.
> sessionInfo()
R version 2.11.1 (2010-05-31)
i686-pc-linux-gnu

Dr. Alla Bulashevska
Freiburger Center for Data Modeling
Germany

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error in png concerning 'type = "cairo"'

2010-03-25 Thread Alla Bulashevska
Dear R-users,
though i have successfully installed Cairo_1.4-5 package on
my Ubuntu machine,
i become the following error message:
Error in png(plot_name, width = 1600, height = 1200) :
  'type = "cairo"' requires cairo >= 1.2 : try 'type =
"cairo1"'
By using 
png(plot_name, width = 1600, height = 1200,type = "cairo1")
i become 
Warning message:
In png(plot_name, width = 1600, height = 1200, type =
"cairo1") :
  type = "cairo1" is deprecated

Thank you for any hint,
Alla Bulashevska.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Unable to install Cairo package

2010-03-18 Thread Alla Bulashevska
Dear R users,
I'm running R version 2.10.1.
I tried installing the Cairo package and I got the
following message:


* installing *source* package ‘Cairo’ ...
checking for gcc... gcc -std=gnu99
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 -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89...
none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about cairo... no
configure: CAIRO_LIBS is unset, attempting to guess it.
configure: CAIRO_CFLAGS=
checking if R was compiled with the RConn patch... no
checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
configure: error: Cannot find cairo.h! Please install cairo
(http://www.cairogra
phics.org/) and/or set
CAIRO_CFLAGS/LIBS correspondingly.
ERROR: configuration failed for package ‘Cairo’

Any help would be greatly appreciated.
Alla

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Align two protein sequences using BLAST

2010-01-05 Thread Alla Bulashevska

Dear R users,
I would like to align two protein sequences using BLAST
(bl2seq). The question is whether this programm have been
implemented in R.
Thank you for your help,
Alla.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] expression and font type of bold

2009-12-04 Thread Alla Bulashevska
Dear R users,
i would like to have expression on my plot written in bold
italic font and use following:
text(0.01,70,expression(bolditalic(r^2==0.67)),pos= 4)
However, only the letter r appears bold and italic, but not
the whole expression. How should i change it?

Thank you for your help,
Alla.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] tick marks on fold change versus fold change plot

2009-11-25 Thread Alla Bulashevska

Dear R users,
i try to produce the fold change versus fold change plot
where i have the values for x and y ranging from 0.01 to
100. So i start with
plot(x,y,xlim=c(0.01,100),ylim=c(0.01,100), axes=F).
Then i would like both axes to have tick marks as 
c(0.01,0.1,1,10,100) but they should appear equidistant.
How should i manage this?
Thank you for your help,
Alla.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error "system is computationally singular" by using function dmvnorm

2009-11-18 Thread Alla Bulashevska

Dear R users,
i try to use function dmvnorm(x, mean, sigma, log=FALSE)
from R package mvtnorm to calculate the probability of x
under the multivariate normal distribution with mean equal
to mean and covariance matrix sigma.
I become the following 
Error in solve.default(cov, ...) :
  system is computationally singular: reciprocal condition
number = 1.81093e-19

What could be the reason of it?
Thank you in Advance,
Alla.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Parameter Estimation of Inverse Gamma distribution

2009-10-29 Thread Alla Bulashevska
Dear R users,
i am searching for the solution of this problem in R: 
how to estimate the shape and scale parameters of Inverse
Gamma distribution.
Your views and help will be appreciated.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.