Displaying 11 results from an estimated 11 matches for "addtohistory".
2004 Jan 10
2
swat error
...ncher.
kio (KLauncher): kio_http (pid 28553) up and running.
DCOP: register 'anonymous-28553' -> number of clients is now 3
kio (KIOJob): TransferJob::slotRedirection(http://localhost:901/)
konqueror: KonqRun::slotRedirection from http://localhost:901 to
http://localhost:901/
libkonq: ## addToHistory: http://localhost:901Typed URL: , Title:
libkonq: ## addToHistory: http://localhost:901/Typed URL: , Title:
DCOP: register 'anonymous-28553' -> number of clients is now 4
kio (KLauncher): KLauncher: Got
start_service_by_desktop_path('http_cache_cleaner.desktop', ...)
kdeinit: Got...
2000 Jul 11
1
Help: R seg faults
...in _rl_callback_newline () at callback.c:76
#3 0x811cb4a in rl_callback_handler_install (prompt=0x4093c210 "> ", linefunc=0x80e8798 <readline_handler>) at callback.c:95
#4 0x80e89b5 in Rstd_ReadConsole (prompt=0x4093c210 "> ", buf=0xbfffeedc "", len=1024, addtohistory=1) at ../../../R-1.1.0/src/unix/sys-std.c:357
#5 0x80e6b2e in R_ReadConsole (prompt=0x4093c210 "> ", buf=0xbfffeedc "", len=1024, addtohistory=1) at ../../../R-1.1.0/src/unix/system.c:66
#6 0x8097d78 in R_ReplConsole (rho=0x40296338, savestack=0, browselevel=0) at ../../../...
2001 Jul 03
0
(PR#1008) SIGSEGV under 1.1.1 too
...own () from
/usr/lib/libreadline.so.3
#4 0x4003a07e in rl_callback_read_char () from /usr/lib/libreadline.so.3
#5 0x80e4a8f in Rstd_ReadConsole (prompt=0x40982210 "> ",
buf=0xbffff038 "for (i in 1:100) an1 <- ann(cbind(runif(1000),
runif(1000)), k = 4)\n", len=1024, addtohistory=1) at sys-std.c:376
#6 0x80e2b6e in R_ReadConsole (prompt=0x40982210 "> ",
buf=0xbffff038 "for (i in 1:100) an1 <- ann(cbind(runif(1000),
runif(1000)), k = 4)\n", len=1024, addtohistory=1) at system.c:66
#7 0x8093618 in R_ReplConsole (rho=0x402dc338, savestack=0,
br...
2014 Oct 27
0
Calling the original function after tweaking arguments is an incorrect use of the R-API?
...// Initialize the plugin by replacing the R_ReadConsole function
> old_R_ReadConsole = ptr_R_ReadConsole;
> ptr_R_ReadConsole = extPrompt_ReadConsole;
> // ...
> }
> int extPrompt_ReadConsole(const char *old_prompt, unsigned char *buf, int
> len,
> int addtohistory) {
> // ...
> // Call the old function with the `new_prompt`
> return (*old_R_ReadConsole)(new_prompt, buf, len, addtohistory);
> }
I am trying to make the R_ReadConsole API call. However, since a different
plugin (like mine) could have overridden it already, I do not want...
2012 Jan 13
0
WISHLIST: Be able to timeout readline()/stdin via setTimeLimit in all consoles
...readReadConsole to get it. InThreadReadConsole points to:
* case 2: CharReadConsole
* case 3: FileReadConsole
Here I get a bit lost, but there is:
/*2: from character console with getline (only used as InThreadReadConsole)*/
static int
CharReadConsole(const char *prompt, char *buf, int len, int addtohistory)
{
int res = getline(prompt, buf, len);
if (addtohistory) gl_histadd(buf);
return !res;
}
and, AFAIU, getline() is from the GNU getline library. Is it possible
to timeout getline()? At least it appears to be responding to SIGINT.
/Henrik
2006 Nov 27
1
R.DLL mapping by P/Invoke
...public dgBusy busy;
public RUIMode characterMode;
};
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0
delegate int dgReadConsole(
[MarshalAs(UnmanagedType.LPStr)]string prompt,
IntPtr buf, int len,
int addtohistory
);
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0
delegate void dgWriteConsole(
[MarshalAs(UnmanagedType.LPStr,SizeParamIndex = 1)]
string buf, int len);
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0...
2007 Oct 17
0
Using R.dll in .NET IPC
...public dgBusy busy;
public RUIMode characterMode;
};
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0
delegate int dgReadConsole(
[MarshalAs(UnmanagedType.LPStr)]string prompt,
IntPtr buf, int len,
int addtohistory
);
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0
delegate void dgWriteConsole(
[MarshalAs(UnmanagedType.LPStr,SizeParamIndex = 1)]
string buf, int len);
//[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0...
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers,
I have been trying to invoke R from Java in a Windows 2000 computer
(unfortunately). All my environment variables seem to be properly set,
everything seems to be in order, but I obtaining a
Fatal error: unable to open the base package
error window.
Also, the output of the invoker is
Loading RInterpreter library
R_HOME: R_HOME=C:/Programas/R
RVersion: R_VERSION=1.6.1
whereas
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
...{
public void rWriteConsole(Rengine re, String text, int oType) {
System.out.print(text);
}
public void rBusy(Rengine re, int which) {
System.out.println("rBusy(" + which + ")");
}
public String rReadConsole(Rengine re, String prompt, int addToHistory)
{
System.out.print(prompt);
try {
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
String s = br.readLine();
return (s == null || s.length() == 0) ? s : s + "\n";
} catch (Exception e) {
Syst...
2005 Dec 21
1
(Debian Bug 344248): R segfaults when pressing Delete (PR#8422)
...with
4.3 or 5.0.
gdb) bt
#0 0xb7f4c942 in _rl_dispatch_callback () from
/usr/local/lib/libreadline.so.5
#1 0xb7f5fd82 in rl_callback_read_char () from
/usr/local/lib/libreadline.so.5
#2 0x0816b98b in Rstd_ReadConsole (prompt=0xb7f6fafc "", buf=0xbf8bb1ec "", len=1024,
addtohistory=0) at /users/ripley/R/svn/R-devel/src/unix/sys-std.c:663
Switching the link from libreadline.so.5 back to libreadline.so.5.0 made
this behave again.
Can you confirm you are running rl5.1? Given the segfault is readline not
in R itself, it is at the very least a change in behaviour in a suppose...
2005 Apr 26
10
Ctrl-c crashes R when run as sudo (PR#7819)
I tried to submit this in R, but not sure if it worked.
When running R as sudo, using ctrl-c dumps me to the command line.
Hitting exit to exit the terminal window results in R taking 100% of
resources.
I am using R-2.1.0 on Fedora Core 3.
Thanks.
Manuel