[Rd] win.version() incorrect
On Windows 8.1 I get this. win.version() indicates build 9200 but I actually have build 9600 as can be seen from the ver command. shell("winver") also indicates 9600. I assume ver and winver are correct and win.version() is not. > win.version() [1] "Windows 8 x64 (build 9200)" > shell("ver") Microsoft Windows [Version 6.3.9600] > R.version.string [1] "R version 3.0.2 Patched (2013-11-25 r64299)" -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] file.exists does not like path names ending in /
If a path name ends in slash then file.exists says it does not exist. I would have expected these to all return TRUE. > file.exists("/Program Files") [1] TRUE > file.exists("/Program Files/") [1] FALSE > file.exists(normalizePath("/Program Files/")) [1] FALSE > R.version.string [1] "R version 3.0.2 Patched (2013-11-25 r64299)" I am using Windows 8.1 . -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] How to debug an R package (with C code)
Hi all, Sorry to bother you. I am a beginner in R programming. I have encountered some problems when I modified a R package with C code. I would like to modified the C code within the R package, and want to debug the C program. But I have no idea how to debug this kind of R package. In the package, a R file named aaa.R use the interface .call(bbb.c, ...) to call the C code named bbb.c. And what I did is that I resourced aaa.R and ran it in R Stdio again, after modifying bbb.c. But there is nothing happened. I am very sure that the all the path of R file and C file is correct. And I am using Windows operating system. Could anyone give me a few pointers on how to debug R packages (or extensions with C++/C code)? If possible, Could you please give me an simple example or some command lines? Regards, Saisai [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel