Displaying 20 results from an estimated 2000 matches similar to: "Compiling a FORTRAN program under Windows 7"
2004 Oct 29
1
problem building an R package under Windows XP with calls to NAG C routines
Hello all,
I was able to create R packages under windows XP in the past using the
dynamic NAG C library for windows XP (Mark 6).
Recently, I changed computers and I am now using the static NAG C library
for windows XP (Mark 7) to create a simple R package (called "test") which
simply returns random numbers simulated using repetitive calls to a NAG C
routine (uniform random
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
2019 Jun 21
3
Samba winbind on centos 7 - "domain users" acls added
hello,
My 2nd issue is about acls which are added by "Domain users".
May you help me to solve it again ?
Concerning this issue, on my samba share, I set permissions for the
share "groups" located on /var/datashared for "domain admins" (rwx) and
"domain users" (r-x)
/var]# getfacl datashared/
# file: datashared/
# owner: root
# group: root
user::rwx
2002 Aug 06
2
[ and setMethod conflict?
I noticed this oddity about [ and setMethod.
First, I define testFunc, which sorts a data frame by the first column and
returns the entries that aren't NAs, and testIt, which runs testFunc
repeatedly on a random large data frame, each time saving the return into a
dummy placeholder (for demonstration's sake).
> require(methods)
Loading required package: methods
[1] TRUE
> testFunc
2002 Aug 06
2
[ and setMethod conflict?
I noticed this oddity about [ and setMethod.
First, I define testFunc, which sorts a data frame by the first column and
returns the entries that aren't NAs, and testIt, which runs testFunc
repeatedly on a random large data frame, each time saving the return into a
dummy placeholder (for demonstration's sake).
> require(methods)
Loading required package: methods
[1] TRUE
> testFunc
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
2018 Feb 15
3
using cat to log to file with sapply
Hi List,
I am trying to write unsuccessfully to a logfile with cat. Here my example code:
letters[1:5]->x
logf<-"test.txt"
cat('%%%%%%%%%%%%%%%%%%%%%%%%%%\n',file=logf)
catf<-function(x,...,logfile='log.txt', append=TRUE){ cat(x,'\n', file=logfile, append=append)}
testit<-function(x,...){
paste0('this is x: ',x)->y
return(y)
2001 May 09
1
Fortran subroutines dblepr, realpr, intpr
I am making my first attempts at using some Fortran code with R, and
so far it's going OK. To print from my Fortran programs, it seems I
need subroutines dblepr, realpr and intpr. From the excellent
"Writing R Extensions" document:
"Three subroutines are provided to ease the output of information
from FORTRAN code.
subroutine dblepr(label, nchar, data, ndata)
2011 Apr 09
2
A question about "txtProgressBar" function
Hi,
I tried to add a progress bar to my script, but it seems the "txtProgressBar" function will wipe out what I want to print before it(for example - the "Hello" in following script), and the parameters "title" and "label" do not work either. How can I put a title for the progress bar? or is there any other better function I can use?
testit <-
2016 Apr 12
3
formula argument evaluation
I have a simple function such as:
foo <- function(x) {
call <- lapply(match.call(), deparse)
testit <- capture.output(tryCatch(eval(x), error = function(e) e))
if (grepl("Error", testit)) {
return(call$x)
}
}
and I would like to detect a formula when x is not an object:
# this works
> foo(A + B)
[1] "A + B"
# but this doesn't
>
2015 Feb 27
1
[LLVMdev] clang\clang++ 3.6.0 don't find C\C++ header , in windows ?
1 hour ago I downloaded llvm-3.6.0-rc4-win32.exe from
http://llvm.org/pre-releases/3.6.0/ .
I tried to compile simple C code that just print "hello" , but it
didn't compile , because clang.exe can't find . when I use
clang-cl.exe with the same code , it worked .
I also have the same problem with clang++ even with , I add -I flag to
GCC (4.9.1) C++ headers , the result:
2019 Nov 08
3
improving the performance of install.packages
Hello,
Currently if you install a package twice:
install.packages("testit")
install.packages("testit")
R will build the package from source (depending on what OS you're using)
twice by default. This becomes especially burdensome when people are using
big packages (i.e. lots of depends) and someone has a script with:
install.packages("tidyverse")
...
... later
2006 Feb 23
3
Polycom IP601 Question
Hey everyone, I haven't seen an issue quite like mine, so I am hoping
anyone who used the Polycom 601's may have an idea.
We are going to be switching our office over to Asterisk. All the phones
are going to be 601's, I am going to set up a boot server, but for now I
am just going to test everything on one phone. My question is I have the
phone registered in Asterisk (phone icon
2002 Oct 28
11
Winbind!
Hello,
I am running Red Hat 7.3 Samba 2.26 and winbind. I have been able to join
the domain and test all of the following with these commands. All works
great.
winbind -u
winbind -g
getent passwd
getent group
But when I set up a share to test with one domain user account it just
presents me with a password dialog box and does not accept anything. It
should not prompt me but if it does
2001 Jul 12
1
Sys.getenv
I am running R-1.3.0 on Solaris 8:
Under Solaris I do
setenv dendro_us hoffmann
echo $dendro_us gives back:
hoffmann
which is correct.
When in R I do:
Sys.getenv("dendro_us") I get
dendro_us
""
which is NOT correct:
Inverse effect (taken from help of Sys.getenv)
Under R:
print(Sys.putenv("R_TEST"="testit", ABC=123))
[1] TRUE TRUE
2013 Oct 30
1
[LLVMdev] Optimization bug - spurious shift in partial word test
In the situation where a partial word is tested, lets say >0, by shifting
left to get the sign bit into the msb and testing llvm is inserting a
spurious right shift instruction.
For example this IR:
...
%0 = load i64* %a.addr, align 8
%shl = shl i64 %0, 28
%cmp = icmp sgt i64 %shl, 0
...
results in
...
shlq $28, %rdi
sarq $28, %rdi ; <<< spurious shift
2012 Dec 09
1
small issue with over-zealous clean.
Noticed a problem for a while - tests/testit.Rd, tests/ver20.Rd are removed on "make clean" unintentionally.
This seems to come from a change in tests/Makefile.in, which adds the line:
- at rm -f *.tar.gz *.Rd back in May 2012.
-----------
commit c4d70254e7b7f9d7ed17faecfb3097195d852ddc
Author: ripley <ripley at 00db46b3-68df-0310-9c12-caf00c1e9a41>
Date: Sun May 27 09:04:41
2013 Jun 26
3
XYZ data
I have x, y, z data. The x, y fields dont change but Z does. How do I add a
very small number onto the end of each x, y data point.
For example:
Original (X) Original (Y) Original (Z)
15 20 30
15 20 40
New (X) New (Y)
2019 Dec 24
0
[centos/centos.org] branch master updated: Removed yourname.nl from sponsors
This is an automated email from the git hooks/post-receive script.
arrfab pushed a commit to branch master
in repository centos/centos.org.
The following commit(s) were added to refs/heads/master by this push:
new 4760934 Removed yourname.nl from sponsors
4760934 is described below
commit 4760934fe176953f4f95dcc6dff52730377e41b2
Author: Fabian Arrotin <arrfab at centos.org>
2016 Dec 07
3
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
>>>>> Jon Skoien <jon.skoien at jrc.ec.europa.eu>
>>>>> on Wed, 7 Dec 2016 11:04:04 +0100 writes:
> I would like to ask once more if this is reproducible also for others?
> If yes, should I submit it as a bug-report?
> Best,
> Jon
Please Windows users .. this is possibly only for you!
Note that I do *not* see problems on