similar to: Using source()

Displaying 20 results from an estimated 10000 matches similar to: "Using source()"

2012 Oct 29
6
export variable from bash to R
Dear R experts This probably seems very easy to you guys, but I'm a beginner and would be really glad if someone helped me with this: I am trying to automate the execution of an R script (let's call it "myscript.R") by passing a variable from a bash script to myscript.R. I know I can use the command Rscript, but I don't know how to declare in bash which variable will be
2009 Jul 13
2
how to run a R program with input arguments
I am a beginner in R and know only a little about it yet. I have a script written in R language, named as "a.txt" for example. I am using a Linux machine, at present I only know that I can type "R" in the terminal and then copy-paste the content in "a.txt" to the R's interface to execute the program. However, I want to know if there is any method that allows me to
2018 Apr 27
5
Bug in RScript.exe for 3.5.0
Thanks Tomas, I confirm the R Under development (unstable) (2018-04-26 r74651) version works for Rscript when the file name has a space, and no arguments are specified. C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R" R Under development (unstable) (2018-04-26 r74651) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601)
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
Hi Tomas, Thanks for the info about the binary builds; I did install it, however the bug still seems to be there in the current build. The workaround you suggested does work: C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R" Fatal error: cannot open file 'C:\foo': No such file or directory C:\>"C:\Program
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
Fixed in R-devel. I will port to R-patched after more testing. Tomas On 04/26/2018 01:52 AM, Tomas Kalibera wrote: > Thanks for the report. A quick workaround before this gets fixed is to > add an extra first argument that has no space in it, e.g. > > Rscript --vanilla "foo bar.R" > > The problem exists on all systems, not just Windows. > > Best > Tomas >
2018 Apr 26
1
Bug in RScript.exe for 3.5.0
Thanks Tomas. I confirm the quick workaround works for me in the DOS prompt, and when having a shortcut to RScript in SendTo, and when used in the Task Scheduler. I have not tested the R-devel version, due to my unfamiliarity with installing from source code. -----Original Message----- From: Tomas Kalibera [mailto:tomas.kalibera at gmail.com] Sent: Thursday, April 26, 2018 6:34 AM To: Kerry
2018 Apr 25
2
Bug in RScript.exe for 3.5.0
Hi R Developers, I have found what I think is a bug in the RScript.exe in version 3.5.0 of R for Windows. When I call Rscript.exe for Version 3.5 of R, it is unable to open the file if the file name or path has a space in it. As an example of what happens, I saved 2 files with the code: cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and as C:\foo_bar.R When I in a DOS
2008 Oct 08
5
Plot means with error bars - A novice needs help
Hello, I'd appreciate a suggestion on how to construct plots (barplots?) that use means on the Y axis instead of density/count. I'd also like to use groups and plot error or confidence interval bars on these graphs. I know this is a read the manual situation. I'd appreciate help with what to read, or your benevolence with some sample code. I've looked at lattice and gplots2, but
2014 Apr 04
6
[PATCH v8 01/10] qspinlock: A generic 4-byte queue spinlock implementation
So I'm just not ever going to pick up this patch; I spend a week trying to reverse engineer this; I posted a 7 patch series creating the equivalent, but in a gradual and readable fashion: http://lkml.kernel.org/r/20140310154236.038181843 at infradead.org You keep on ignoring that; I'll keep on ignoring your patches. I might at some point rewrite some of your pv stuff on top to get
2014 Apr 04
6
[PATCH v8 01/10] qspinlock: A generic 4-byte queue spinlock implementation
So I'm just not ever going to pick up this patch; I spend a week trying to reverse engineer this; I posted a 7 patch series creating the equivalent, but in a gradual and readable fashion: http://lkml.kernel.org/r/20140310154236.038181843 at infradead.org You keep on ignoring that; I'll keep on ignoring your patches. I might at some point rewrite some of your pv stuff on top to get
2009 Feb 03
7
The Origins of R
In another thread on this list, various wild allegations have been made, relating to the New York Times article on R. I object both to the subject line and to the content of several of the messages, and will not repeat or quote any of that content. It smacks to me of mischief making. Discussion has centered around the following quote from the NY Times article: ?According to them, the
2017 Feb 13
2
Bugzilla invalid certificate issues
EV certs attempt validate the identity of the organization that holds them.  That is a nice assurance to have from a place that makes the thing that compiles your code. On February 11, 2017 at 12:28:08 PM, Stephen Checkoway (s at pahtak.org) wrote: > On Feb 10, 2017, at 18:27, Chris Matthews via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Letsencrypt only offers domain
2004 Jan 27
2
Server Report
2017 Mar 26
1
Tip: update dovecot MD5 password from PAM
>>>>> Aki Tuomi <aki.tuomi at dovecot.fi>: > Is there some reason you cannot protect your users with TLS/SSL? I do use SSL. I don't understand what that have to do with the preference of CRAM-MD5 over plain text auth? > Using CRAM-MD5 is not very secure option, since you have to store the > password in clear text. Plain MD5 is almost plaintext these days. I
2007 Sep 24
2
Performance problems to fill up a dataframe
Dear Listmembers, I'm trying to fill up a dataframe depending on an arbitrary list of references: Here is my code, which works: dat <- data.frame(c(60001,60001,60050,60050,60050),c(27,129,618,27,1579)) LR <- sort(unique(dat[,1])) LC <- sort(unique(dat[,2])) m <- as.data.frame(matrix(data=NA, nrow=length(LR), ncol=length(LC), dimnames=list(LR,LC))) for(i in 1:nrow(dat)){
2013 Jul 18
1
Looking for knitr example for beginner (NO RStudio)
Hi everyone, I am using package knitr, FIRST TIME. I don't have access to RStudio. Read through Yihui's page, didn't find it helpful. Stuck on terms Rnw, GFM (GitHub Flavored Markdown). Never used Sweave, so the reference is not helping. Is there a simple step-by-step example WITHOUT RStudio? My question: What is the procedure? The documentation explains the functions, but does
2009 Jun 18
1
Calling library functions from outside R
I develop quite a bit of R code that I tend to distribute, or let other people embed in their software. One of the things I'd really like to do is find a way to load an R library I've developed, and call one function with arguments. Currently, I achieve that by building a separate R client file, which reads in the command line arguments, loads the library, and calls the main
2012 Sep 04
11
I wanna make a new rails community :)
Hi everyone! I''m a newbie engineer. I started rails programming, but I''m learning alone and can''t understand other rails cord so much. So I wanna have friend with other newbie rails engineers and share a process of making apps. It is not for sharing the "result" of programming like Github, but for recording the almost all of process of making one app.
2017 Dec 03
5
Rcpp, dyn.load and C++ problems
Hi, I have written a small C++ function and compile it. However in R I can't see the function I have defined in C++. I have read some web-pages about Rcpp and C++ but it is a bit confusion for me. Anyway, This is the C++-code: #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] List compute_values_cpp(int totalPoints = 1e5, double angle_increment = 0.01, int radius =
2011 May 27
2
Speed up an R code
Hello, ? Are there some basic things one can do to speed up a R code? I am new to R and currently going through the following situation. ? I have run a R code on two different machines. I have R 2.12 installed on both. ? Desktop 1 is slightly older and has a dual core processor with 4gigs of RAM. Desktop 2 is newer one and has a xeon processor W3505 with 12gigs of RAM. Both run on Windows 7. ?