Re: [R] Is there a way to open R terminal running in the background

2017-04-19 Thread Brad P
ay be considered a Windows question - I will look further into opening a process running in the background using DOS commands. Thank you for your time. On Wed, Apr 19, 2017 at 12:14 PM, Duncan Murdoch wrote: > On 19/04/2017 11:44 AM, Brad P wrote: > >> Hello, >> >> I am working on

[R] Is there a way to open R terminal running in the background

2017-04-19 Thread Brad P
Hello, I am working on a GUI, which is working well so far. I am working on a Windows 7 machine with 64 bit R (Microsoft R Open 3.3.2) Essentially: 1) a VBS executable is used to open the GUI leaving the R terminal running in the background but not showing using: CreateObject("Wscript.Shell").Ru

[R] Is there a way to get R script line number

2017-04-06 Thread Brad P
Hello, Is there a way to get the current line number in an R script? As a silly example, if I have the following script and a function called getLineNumber (suppose one exists!), then the result would be 3. 1 # This is start of script 2 3 print( getLineNumber() ) 4 5 # End of script Thanks for

[R] LASSO covTest doesn't work when used inside a function

2014-04-22 Thread Brad P
Hello, I have stumbled across a peculiar problem. I am writing code for a simulation, and would like to package it into a function that completes one iteration. I'm using covTest sig. tests for LASSO (link is below to info and the source code). When this function is used within a function (F.1 b

[R] PLS1 NIPALS question: error with chemometrics package?

2013-09-22 Thread Brad P
I am doing a self study, trying to understand PLS. I have run across the following and hope that someone here can clarify as to what is going on. These are the data from Wold et al. (1984) dat <- structure(list(t = 1:15, y = c(4.39, 4.42, 5, 5.85, 4.35, 4.51, 6.33, 6.37, 4.68, 5.04, 7.1, 5.04, 6,