similar to: HELP!! - PHP calling R to execute a r-code file (*.r)

Displaying 20 results from an estimated 200 matches similar to: "HELP!! - PHP calling R to execute a r-code file (*.r)"

2001 Feb 27
1
using fmod in C code to be loaded into R
Dear People, I wrote the following bit of C code and (along with other bits) called it mycode.c, and compiled the file into a shared library to load into R, using R CMD SHLIB mycode.c. This was Ok, but when I tried to load this into R using dyn.load("mycode.so") I got the error > dyn.load("mycode.so") Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to
2005 Dec 28
1
segmetation fault
Hey, I don;t know if anyone has come across this error before... I am running R on the terminal of my MAC OS X 10.3.4 and I have written C code and compiled it using R CMD SHLIB mycode.c There were no problems in compiling so I now have mycode.o and mycode.so. I used dyn.load("mycode.so") and again, no problems. But when I try to use the code .C("mycode",x)
2018 Jan 24
0
Issue with concatenation of URL losing
a) you need to read the help pages on the paste function... more likely you are looking for the paste0 function because extra spaces will most likely break the GET request format. b) quotes do not become "stuck" as \" ... that is a visual representation intended to clarify that that quote is not terminating the string but is actually part of it. If you want to see the contents
2010 Oct 04
1
source package build/installation with subdirectory-lib
hi all - i have a source package i'm writing that i'd like to be able to install with a special library that my R src files rely on. to be more precise, i have a normal R package directory structure (i.e. src/ R/ man/ DESCRIPTION NAMESPACE etc.). i also have another directory here called depPkg, and it has it's own configure file for the canonical './configure && make
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance. I am trying to pull some data back from a web service library(httr) sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode") result2 <- content(sample2) height <- result2$height[[1]] I would like to put by own latitude
2010 Oct 26
1
About the recursion in R
Hi, I am now using R to implement a stepwise algrithom which includes a recursion function. e.g: -------------------------------- a = 1 *f_recursion* = function(id) { b = a + id; #: row A if (...){ a = a +1;* f_recursion*(b) } #: row B else{ .... } } ---------------------------------- I find that if the code '*f_recursion*(b)' in row B is invoked, that means
2012 Mar 04
2
[LLVMdev] Passing arguments to opt via clang
I have tried to invoke a transformation/optimization pass using -mllvm, without success. I might be missing something. For example I have a shared/dynamic library which contains LLVM passes. I used to invoke them with llvmc like this: >>*llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo* Can this style of optimization be executed using -mllvm argument? Thx, PMon On Sun,
2008 Jul 08
6
Question: Beginner stuck in a R cycle
Dear All, I have a database of 200 observations named myD. In the dataframe there are a column named code (with codes varying from 1 to 77), a column named "prevalence" with some quantitative measurements are given and an column named Pr_mean, with no values. I would like to set a cycle to compute the average of prevalence values for each different code and store the averages under the
2006 Feb 28
1
trouble with R CMD SHLIB on winXP
Hi, Has anyone come across this difficulty using R-2.2.1 in Windows XP: when I try to run R CMD SHLIB mycode.c I get the response: "The system cannot execute the specified program." I've tried installing all windows updates, reinstalling R and putting "R-2.2.1\bin" at the head of my path. Googling that error message leads to lots of stuff about *.manifest files. The
2011 Jul 13
1
R in Batch mode
Hi, I'm running long code in Batch mode (as a process in ubuntu using $nohup R CMD BATCH MyCode.R out.out &), but every one in a while it fail and the process stops. When the code finish with no problems, it sends an e-mail, but if fails, I'm not aware unless I check the working process, and I cannot be checking the process all day!. Is there any way to send me a warning when the
2007 Apr 15
1
help:How to set default value for a column use of migration?
hi,all.. Here i want to use of migration to create a table and set a defult value for a column..but i cant''t finished.. mycode: class CreateMessages < ActiveRecord::Migration def self.up create_table :messages do |t| t.column :name, :string t.column :content, :text t.column :posttime, :datetime, :default => "now()" end end def
2007 May 13
1
Strange behavior of debugger
Hi, All: I had some trouble debugging C source dynamically loaded into R , when I issued N in gdb(or insight) , the debugger, instead of moving downward step by step, jumped to strange positions (upward, downward, one step, a few steps away). To enter the debugger, I issued gdb(insight) Rgui.exe in Cygwin and add this line : asm("int $3"); to my C code. After entering R, I
2006 Aug 01
5
ZFS, block device and Xen?
Hi There, I looked at the ZFS admin guide in attempt to find a way to leverage ZFS capabilities (storage pool, mirroring, dynamic stripping, etc.) for Xen domU file systems that are not ZFS. Couldn''t find an answer whether ZFS could be used only as a "regular" volume manager to create logical volumes for UFS or even a Linux ext2fs, with ideally, the ability to create
2014 Feb 26
0
[PATCH v5 3/8] qspinlock, x86: Add x86 specific optimization for 2 contending tasks
A major problem with the queue spinlock patch is its performance at low contention level (2-4 contending tasks) where it is slower than the corresponding ticket spinlock code path. The following table shows the execution time (in ms) of a micro-benchmark where 5M iterations of the lock/unlock cycles were run on a 10-core Westere-EX CPU with 2 different types loads - standalone (lock and protected
2014 Feb 27
0
[PATCH v5 3/8] qspinlock, x86: Add x86 specific optimization for 2 contending tasks
A major problem with the queue spinlock patch is its performance at low contention level (2-4 contending tasks) where it is slower than the corresponding ticket spinlock code path. The following table shows the execution time (in ms) of a micro-benchmark where 5M iterations of the lock/unlock cycles were run on a 10-core Westere-EX CPU with 2 different types loads - standalone (lock and protected
2013 Jan 07
0
update the table, using best_in_place
I have a table of workers: there are parameters of: `admin_mail`, `task` and `done`. in my `index.html.erb`, you can see the table is divided by two conditions: the first one is called `TODO TASKS'' that contains all the tasks that `done = false''. and the second one is called `DONE TASKS` that contains all the tasks that `done = true''. I used `best_in_place` in order
2012 Mar 04
0
[LLVMdev] Passing arguments to opt via clang
Hello > For example I have a shared/dynamic library which contains LLVM passes. I > used to invoke them with llvmc like this: >>>llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo > Can this style of optimization be executed using -mllvm argument? No. You cannot add additional passes this way, only pass 'ordinary' arguments. -- With best regards, Anton
2012 Mar 04
0
[LLVMdev] Passing arguments to opt via clang
On 03/04/2012 02:32 PM, Harel Cain wrote: > Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 > nor couldn't I find any mention of it. What does it do? It's called -mllvm. You can use it like this. clang -mllvm -vectorize ... Cheers Tobi
2012 Mar 04
3
[LLVMdev] Passing arguments to opt via clang
Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 nor couldn't I find any mention of it. What does it do? Harel Cain On Sun, Mar 4, 2012 at 15:03, Anton Korobeynikov <anton at korobeynikov.info>wrote: > > In the good old llvmc, the -Wo flag could be used to pass arguments to > the > > optimizer. Is there a similar mechanism anywhere for clang?
2005 Jul 27
1
Dovecot, Postfix, Mysql and Virtual Users
I have been reading up : http://wiki.dovecot.org/moin.cgi/DovecotPostgresql to create virtual users who can access the email. Can i follow these steps with a few changes to get to use mysql instead of Postgresql ? Also i dont know if u all can help.. but i have tried to do : SASL2 authentication configuration in main.cf(Postfix): smtpd_recipient_restrictions = permit_sasl_authenticated,