Displaying 20 results from an estimated 100 matches similar to: "building a package under windows"
2004 Oct 22
1
building an R package : where and how should my fortran library be loaded ?
Hi ,
I'm currently trying to make available
a few fortran subroutines and R functions
(which make interface to these subroutines),
as an R package.
I'm doing it under linux with R 1.9.0
(but hope to do it for windows too).
I have trouble for loading my fortran code.
Here are the steps involved :
1) In R:
# Create tree for package
2005 Oct 26
1
pb with dyn.load - fortran code now attached
Hi,
here are a couple of strange things happening with R.2.2.0 compiled
under Mandrake-10.1
At the begining of the story I have segmentation fault
using package RandomFields in conjuction with some Fortran code of mine
loaded with dyn.load.
One of my fortran programs contains a subroutine named fstat
Trying to trace , I simplified the sequence as much as possible
and I end up with the the
2010 May 29
1
warning In fun(...) : no DISPLAY variable so Tk is not available
I am getting the above warning following loading of Geneland 3.1.5 on
unix , while a simple plot sends output to the pdf file ( see attached
code) no output results from Geneland functions, resulting in empty pdf
files
> library (Geneland)
Loading required package: RandomFields
Loading required package: fields
Loading required package: spam
Package 'spam' is loaded. Spam version
2010 May 20
1
Geneland error on unix: Error in MCMC(........ :, unused argument(s) (ploidy = 2, genotypes = geno)
I am receiving the above error ( full r session output below) the
script runs OK in windows. and "genotypes" and "ploidy" are both
correct arguments
any suggestions would be most welcome
Nevil Amos
MERG/ACB
Monash University School of Biological Sciences
> library(Geneland)
Loading required package: RandomFields
Loading required package: fields
Loading required
2005 Jul 05
1
calling fortran functions CHOL and DPOTRF form Fortran
Hi all,
I'm working out some Fortran code for which
I want to compute the Choleski decomposition of a covariance matrix
in Fortran.
I tried to do it by two methods :
1) Calling the lapack function DPOTRF.
I can see the source code and check that my call is correct,
but it does not compile with:
system("R CMD SHLIB ~/main.f")
dyn.load("~/main.so")
I get:
Error in
2005 Nov 30
2
R binomial RNG stuck at 1 via Fortran call
Hi,
I have some trouble with the result of a fortran function calling the R
binomial RNG:
The C function rbinom is wrapped as in the file attached.
My main fortran program starts as
call rndstart()
and ends as
call rndend()
I happen to call the binomial RNG within a loop as
b = ggrbinom(1.d0,0.5d0)
write(*,*) 'b=',b
In certain cases, after a few iterations in the loop,
b get
2009 Jan 13
3
problem whit Geneland
I do the these passages:
library(Geneland)
set.seed(1)
data <- simdata(nindiv=200,
coord.lim=c(0,1,0,1) ,
number.nuclei=5 ,
allele.numbers=rep(10,20),
IBD=FALSE,
npop=2,
give.tess.grid=FALSE)
geno <- data$genotypes
coord <- t(data$coord.indiv)
path.mcmc <-
2005 Nov 08
1
R build under mandriva 10.2
After upgrading from mandrake 10.1 to mandriva 10.2
I can't build shared archive with R 2.2.0
[guillot at laplace src]$ R CMD SHLIB main.f sub.f wrapper.c
gcc -shared -L/usr/local/lib -o main.so main.o sub.o wrapper.o -lg2c -lm
-lgcc_s
/usr//bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
make: *** [main.so] Erreur 1
I guess the information in
2008 Dec 10
1
plot Geneland result in a map
Hello,
anybody know the procedure to plot the geneland result in a map?
thank you
**********************************************************
Vincenzo Landi
Post Doctorate student
Animal genomic and breeding
cell:0039/3395388713
Fax. 075-5857122
[[alternative HTML version deleted]]
2005 Oct 26
0
pb with dyn.load
Hi,
here are a couple of strange things happening with R.2.2.0 compiled
under Mandrake-10.1
At the begining of the story I have segmentation fault
using package RandomFields in conjuction with some Fortran code of mine
loaded with dyn.load.
One of my fortran programs contains a subroutine named fstat
Trying to trace , I simplified the sequence as much as possible
and I end up with the the
2010 May 07
1
writing string values from a matrix to a file without enclosing quotes
I am trying to format data for the Geneland package
I need to write a series of paired numbers and paired "000"
to a plain ascii file without surrounding the numerals with quotes,
the original data is in a matrix formatted paired strings,
and written to file using
write.table(x,"output filename",col.names=F,row.names=F)
thus
"77 79" "132 132" "000
2011 Feb 08
1
Recuperate Spectrum() amplitude
Dear list,
I apologies first for my English, hope you will understand well my question.
I am working on 1/2 hour piezometric data, time unit is second. They
present daily oscillation when using the spectrum() function. What I am
really interested in, is to find the amplitude corresponding to this
oscillation.
I work with a college using Matlab, and although we apply the same
methodology, our
2005 Jun 14
3
Calling C from Fortran
I would like to call C routines from Fortran under linux as suggested in
section 5.6 of
the "Writing R extensions" documentation.
I'm familiar with Fortran but not with C.
I understand the example provided in Fortran:
subroutine testit()
double precision normrnd, x
call rndstart()
x = normrnd()
call dblepr("X was", 5, x, 1)
call rndend()
end
but I don't understand
2010 May 31
0
miss.loc function in MCMC Geneland: can't make it work
I am trying to use the function 'filter.NA=TRUE' in Geneland. The function
appears to be set on TRUE by default, as it appears as TRUE in the
'parameter.txt' file output and hence I do not need to enter the function
per se (as it is an 'Unused argument otherwise') . Hence all my missing
data (individuals that I have not yet scored at that specific loci) are
scored as
2011 Apr 04
0
Multithreading of Geneland
Hi all,
I would like to multithread that script, to detect structure from multilocus genetic data :
>library(Geneland)
>
>geno = read.table("cot966gen_test.txt") #the file is show after
>MCMC(geno.dip.codom = geno, varnpop=T, npopmax=20, spatial = F, nit=100000, thinnin=100, path.mcmc="./")
>PostProcessChain(path.mcmc="./", nxdom=100, nydom=100,
2005 Jun 14
1
Calling C from Fortran
I would like to call C routines from Fortran as suggested in section 5.6 of
the "Writing R extensions" documentation.
I'm familiar with Fortran but not with C.
I understand the example provided in Fortran:
subroutine testit()
double precision normrnd, x
call rndstart()
x = normrnd()
call dblepr("X was", 5, x, 1)
call rndend()
end
but I don't understand the purpose
2011 Oct 16
1
Error in gzfile(file, mode) when checking a package with rcmd check
Hi,
For the first time I have a strange behaviour when checking a package
before 'packaging' the code. Looks like a file cannot be read.
rcmd check pgirmess
* using log directory 'U:/Documents and Settings/pgiraudo/Mes
documents/R/pgir_arch/pgirmess_arch/On work/pgirmess.Rcheck'
* using R version 2.13.2 (2011-09-30)
* using platform: i386-pc-mingw32 (32-bit)
* using session
2004 Dec 03
2
Status of linux 2.6 support
I'm sure that this question gets asked frequently, but a quick perusal
of the list archives shows that it hasn't been asked in a least a month
or so, so pardon any repetition.
What is the current state of asterisk on linux 2.6?
I ask, because I spent yesterday giving it a whirl, and everything
seems to go just fine till the very last minute.
Zaptel, libpri and asterisk compile just
2007 Jan 23
0
Refreshing the GUI and packing images
Dear all
I'm developing a grafical interface for Geneland that is presently one of the
R packages available.
My first question is about refreshing the interface while running a very long
process.
run<-function(){
? ? ? ? tttry <- tktoplevel()
? ? ? ? tkwm.geometry(tttry, "+200+200")
? ? ? ? tkwm.title(tttry,"wait")
? ? ? ?
2005 Nov 30
1
RNG stuck via Fortran call
Having not much success with my previous question I try to reformulate it:
I'm simulating a Markow chain in Fortran interfaced with R.
Each loop of my Fortran calls various functions of the R RNG through
the wrapper given below.
In a run of 100 iterations of the Markov kernel,
after 20 iterations, the RNG seems like frozen.
For example, the first call to the RNG in my loop is: