Displaying 20 results from an estimated 1000 matches similar to: "how to assign "writeLines" function"
2018 Sep 18
2
Suggested Patch: Adding commas to list of packages after R CMD check
Dear R-devs,
Scenario:
When checking a package via `R CMD check package_tar.ball`, required / suggested packages may be missing. R subsequently returns a list of packages that are missing (delimited by spaces).
Example:
```
R CMD check glmSparseNet_0.99.13.tar.gz
* using log directory '/home/ubuntu/Bioconductor/glmSparseNet.Rcheck'
* using R Under development (unstable) (2018-06-06
2001 Oct 26
3
warnings --- wish/bug (PR#1148)
When R prints warnings, they often go "out of the line", it would be
better if they where wrapped with
writeLines(strwrap ...
I tried to do that , changing the function warnings, but it has only
effect when called explicitely, not when R prints the warnings unasked.
Anyhow, here is the changed warnings:
warnings <-
function (...)
{
if (!(n <- length(last.warning)))
2018 Sep 18
0
Suggested Patch: Adding commas to list of packages after R CMD check
On 18/09/2018 2:16 PM, Marcel Ramos wrote:
> Dear R-devs,
>
>
> Scenario:
>
> When checking a package via `R CMD check package_tar.ball`, required / suggested packages may be missing. R subsequently returns a list of packages that are missing (delimited by spaces).
>
> Example:
>
> ```
> R CMD check glmSparseNet_0.99.13.tar.gz
> * using log directory
2004 Jul 26
6
directing print.packageInfo to a file
There was a discussion on r-help of getting the output from
print.packageInfo into a file. Spencer and I have added a file=
argument to print.packageInfo for consideration in R. Had this
been available it would have simplified the answer to that
thread. If the file= argument is used then the packageInfo
information is sent to the file specified rather than displayed
using file.show .
2012 Mar 12
2
erasing "[1]"
hi,
is there any way to erase the term "[1]"?
for example,
> a<-3+2
> a
*[1]* 5
the term [1] in front of number 5.
is there any way?
--
View this message in context: http://r.789695.n4.nabble.com/erasing-1-tp4467628p4467628.html
Sent from the R help mailing list archive at Nabble.com.
2012 Apr 13
2
How to define format of number
hi all,
What I want to do is show a number with thousand expression.
I dont know exactly the expression name but here is example.
1,000
10,000,000
is there a way to express a number like that?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-define-format-of-number-tp4555778p4555778.html
Sent from the R help mailing list archive at Nabble.com.
2012 Mar 31
3
clear console
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls <- function (t) {
require(RDCOMClient)
wsh <- COMCreate("Wscript.Shell")
wsh$SendKeys("\f")
invisible(wsh)
}
cls()
or
cls <-
2012 Nov 03
3
to print system.time always
Hi all;
I want to print system.time whenever I execute any command.
It takes too much time to type "system.time()" function to all command.
is there any solution on it?
And,
apply(matrix,1,cumsum) command is too slow to some large matrix.
is there any function like rowCumSums ?
thank u!
--
View this message in context:
2012 Mar 16
2
how to speed up the inefficient code
hi,
i'm really in trouble to simulate some experiment.
that is, it takes too much time to process the following code.
following is short example,
-------------------------------------------------------------------------------------------------------
p<-data.frame(a=rnorm(10),b=rnorm(10),c=rnorm(10),d=rnorm(10))
test<-data.frame(a=rnorm(1),b=rnorm(1),c=rnorm(1),d=rnorm(1))
2018 May 11
1
valgrind issue in core R 3.5
wrapped <- strwrap("raw")
writeLines(wrapped)
q()
==8699== Conditional jump or move depends on uninitialised value(s)
==8699== at 0x40310A9: ???
==8699== by 0xB07F4EF: ???
==8699== by 0xB07F4EF: ???
==8699== by 0xB07F4F2: ???
==8699== by 0x1FFEFFA88F: ???
==8699==
2012 Nov 22
1
rapache memory problem
Hi all;
Now I'm developing web application by using rapache in ubuntu.
My problem is that as users execute the application, the server PC cumulates
memory.
After users close or refresh the application page, the server PC memory is
still cumulated.
Now I'm renewing apache machine by manually in terminal.
Is there any way to kill memory when users refresh or close the application
page?
2012 Mar 15
2
how to hide code of any function
hi
I'm making some program and it need to be hidden.
it's not commercial purpose but it is educational,
so i do want to hide the code of function.
for example,
if i made following function:
a<-function(x){
y<-x^2
print(y)
}
i do not want someone to type "a" and take the code of the function.
is there anyone who can help me?
--
View this message in context:
2012 Jun 23
1
globalVariables()
Dear r-devel list members,
By placing a call to the new (with R 2.15.1) globalVariables() in the development version of the Rcmdr package, I've succeeded in reducing the "notes" produced by R CMD check from dozens to two. But I still get the following notes, even though '.commander.done' is in the call to globalVariables():
------------- snip ------------
* checking R code
2013 Aug 20
7
Extending suggestion for stopifnot
I am using a variant of stopifnot a lot. can I suggest that base R
extends its functionality? I know how to do this for myself. this is
a suggestion for beginners and students. I don't think it would break
anything.
first, I think it would be more useful if it had an optional character
string, so users could write
stopifnot( is.matrix(m), "m is not a matrix" )
this would
2006 Feb 28
1
Typos in writeLines.Rd, readLines.Rd, and data.matrix.Rd
Hello,
The diffs below are based on revision 37445 and show
some typo corrections for writeLines.Rd, readLines.Rd,
and data.matrix.Rd that I'd like to bring to the list's
attention.
Sincerely,
Stephen Weigand
Rochester, Minnesota, USA
--- ./src/library/base/man/writeLines.Rd Sun Feb 26 13:46:06 2006
+++ /tmp/writeLines.Rd Sun Feb 26 20:53:44 2006
@@ -14,8 +14,8 @@
each
2012 Feb 27
5
macro function
hi,
I know how to use the "for" loop function like:
for(i in 1:ncol(mat)){
mat[i]<-b[i,2]
}
but, in this case
r1<-b[1,1]
r2<-b[2,1]
r3<-b[3,1]
r4<-b[4,1]
*
*
*
r3002<-b[3002,1]
r3003<-b[3003,1]
- must make vectors
how should I make a efficient code for that?
Is there anything in R like SAS MACRO function?
Please help me.
--
View this message in context:
2012 Oct 14
1
stop at error point in for-loop
hi all:
Following is simple example,
for(i in 1:10000000){
a<-function(i){
#some function that has an error
}
}
What I want to know is the way to find the error point in for-loop, What "i"
makes the error.
is there any way to solve it instead of debugging and finding an error
manually?
Thanks,
--
View this message in context:
2012 Mar 16
1
how to speed up the process of R
hi
I'm simulating some experiment by "for" function.
The problem is that it takes too much time.
for example,
a<-list()
for(i in 1:100000000){
a[[i]]<-i*1000
}
is there anyway to speed up the process?
I heard there is solution but i don't have idea.
Can anyone help me?
--
View this message in context:
2012 Mar 22
1
how to adjust gui window size
hi, i'm trying to make gui function by "aDialog" FUN.
What i want to do is adjusting the window size.
my function is ,
aa<- aDialog(items=list(
ps=numericItem(),
number=numericItem(),
term=numericItem()
),
OK_handler=function(.) { # . is reference to dlg object
values <- .$to_R()
do.call("KOD",values)
}
)
how can i adjust the size of the window?
Thanks~
--
View
2012 Mar 24
1
how to make output more lovely
Hi, I'm trying to make output of my function easier to see and more lovely.
As u know, R output is not easy to see for beginner of study or anyone not
expert
so I want to transform the output into other form.
Output of my function is just long text with some numerical result and
table.
Is there a way to solve it?
Thanks.
--
View this message in context: