Displaying 20 results from an estimated 10000 matches similar to: "Fix documentation about <- and = differences"
2020 Jan 10
1
Operator precedence of =, <- and ?
The documentation (help("Syntax")) gives the operator precedence of the
assignment operators and help, from highest to lowest, as:
?<- <<-? assignment (right to left)
?=? assignment (right to left)
??? help (unary and binary)
If I understand correctly this implies that `a = b ? c` and `a <- b ? c`
should parse
2019 Jul 03
2
Using bytecode version of std::sort for JIT generated data type
Hi LLVM devs,
The performance of C++ std::sort comes from being able to inline the
comparator. For a JIT generated data type, using the comparator as a
function call from std::sort may not be ideal. So, i was wondering how can
we make a JIT-sort which is as good as statically compiled std::sort with
comparator inlined.
What is the recommended way to pass a an existing function like std::sort
into
2012 Dec 10
1
Long equation in documentation
I have a long equation that I need to break in the R documentation of a package or it trails off the right hand side of the page. Here's the formula:
\deqn{Cov(r_{ist}, r_{iuv})= [.5\rho_{ist}\rho_{iuv}(\rho_{isu}^2 + \rho_{isv}^2 + \rho_{itu}^2 + \rho_{itv}^2) + \rho_{isu}\rho_{itv}+ \rho_{isv}\rho_{itu}-(\rho_{ist}\rho_{isu}\rho_{isv} + \rho_{its}\rho_{itu}\rho_{itv}) +
2010 Oct 01
3
scoping goes wrong when some functions are used within others.
Dear,
I'm following the r tag on stackoverflow.com, and couldn't but notice
there are quite some questions popping up that deal with scoping in
relation to custom functions. I grinded my teeth on it already, and I
have absolutely no clue what goes wrong. The general pattern is as
follows :
ff <- function(x){
y <- some_value
some_function(y)
}
> ff(x)
Error in eval(expr,
2019 Jul 03
2
Using bytecode version of std::sort for JIT generated data type
Thanks David! I understand that std::sort doesn't exist without types
especially at bytecode layer.
What I was thinking was something like the following:
Compile std::sort with a thunk function Compare(void*, void*) {rerturn
false} into bytecode with an option say noinline and always make the
function call or even a simple unoptimized bytecode which guarantees that
Compare exists as a
2003 Mar 04
1
suggestion for addition to R-lang.texi
Small suggestion for the documentation:
Should the = operator for assignments, described on
http://developer.r-project.org/equalAssign.html, now be included in
the operator table in doc/manual/R-lang.texi? If so, one possibility
could be after lines 1096/7:
@item @code{<-}
@tab Left assignment, binary
@item @code{=}
@tab Left assignment, binary
Also, where is the best place to send
2016 Mar 06
3
Could unit.list() from grid package be made an exported function?
Hello,
certain manipulations of ggplot2 graphs, in particular aligning them, require the function grid:::unit.list(). See e.g. these posts on stackoverflow:
http://stackoverflow.com/questions/34032621/element-replacement-in-grid-unit-vector
http://stackoverflow.com/questions/32580946/setting-absolute-size-of-facets-in-ggplot2/32583612#32583612
http://stackoverflow.com/a/35823179/4975218
Since
2015 Aug 30
2
In-source builds are not allowed, but documentation requires Make.config
Hi,
I’m trying to build the documentation. Running make in /docs, I get the following error:
Makefile:44: Makefile.config: No such file or directory
make: *** No rule to make target `Makefile.config'. Stop.
According to this answer: http://stackoverflow.com/questions/4763381/no-rule-to-make-target-makefile-needed-by-makefile#comment40533198_4908782
2010 Feb 20
1
What is your system for WorkFlow and Source Code Organizing in R ?
Hello dear R users,
Recently there has been several fascinating threads on the website
stackoverflow <http://stackoverflow.com> regarding the subject of R WorkFlow
best practices:
- What best practices do you use for programming in
R?<http://stackoverflow.com/questions/2258092/what-best-practices-do-you-use-for-programming-in-r>
- Workflow for statistical analysis and report
2015 Mar 12
2
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
Hi
I am seeking to understand why the methods package (to be specific
`methods:::.findOrCopyClass` when called by `setIs` when called by
`setClass`) emits a warning message such as
` class "SpatialLinesNULL" is defined (with package slot 'rgeos') but no
metadata object found to revise subclass information---not exported? Making
a copy in package 'minweSpatialNULL `
2019 Jul 08
2
Using bytecode version of std::sort for JIT generated data type
Thanks David!
I am not clear on how to achieve this though. Could you give more info on
this?
I expect something like this:
sort.cc file:
bool Compare(void* a, void* b) {
return false;
}
void SortFunc(void* arr, int len) {
std::sort(arr, len, &Compare)
}
$MAGIC_COMMAND sort.cc -o a.llvm
a.llvm is a bytecode which can be loaded at runtime in my JIT module and
write some code to
2016 Nov 13
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
Dear R friends,
to allow post-mortem debugging In my Rscript based batch jobs I use
tryCatch( <R expression>,
error = function(e)
{
dump.frames(to.file = TRUE)
})
to write the called frames into a dump file.
This is similar to the method recommended in the "Writing R extensions"
manual in section 4.2 Debugging R code (page 96):
2011 Aug 18
1
problems with connections when applied in tryCatch
Recently on stackoverflow following problem came up :
http://stackoverflow.com/questions/7103429/all-the-connections-are-in-use-execution-halted/7108799#7108799
A reproducible example: When trying
replicate(200,tryCatch(read.table("this.is.no.file"),
warning=function(w){print(showConnections());print("warning")}))
No connections are shown, but after a number of
2016 May 02
2
Is it possible to increase MAX_NUM_DLLS in future R releases?
Hi,
I?m working on a Shiny app for statistical analysis. I ran into this "maximal number of DLLs reached" issue recently because my app requires importing many other packages.
I?ve posted my question on stackoverflow (http://stackoverflow.com/questions/36974206/r-maximal-number-of-dlls-reached <http://stackoverflow.com/questions/36974206/r-maximal-number-of-dlls-reached>).
I?m
2017 Jun 30
2
Simplest way of executing a non-blocking (async) python AGI script?
OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's
now 22:20 and I have been through 4 different methods, all block with
a 2 second delay before returning to dialplan.
Here are just some of the examples I have tried, as as per the
suggestions, I am closing all possible outputs in the forked process.
https://docs.python.org/3.5/library/multiprocessing.html
2019 Sep 30
5
Is missingness always passed on?
There's a StackOverflow question
https://stackoverflow.com/q/22024082/2554330 that references this text
from ?missing:
"Currently missing can only be used in the immediate body of the
function that defines the argument, not in the body of a nested function
or a local call. This may change in the future."
Someone pointed out (in https://stackoverflow.com/a/58169498/2554330)
2015 Mar 13
1
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
On looking more closely, the purpose of finding the class definition is to update the entry for the new relationship, as the warning message suggests. That requires that the namespace holding the definition be writable.
In the case of subclass information, the original namespace is very likely to be locked, if it's not the package currently being loaded. Copying the definition in order to
2019 Jul 09
2
Using bytecode version of std::sort for JIT generated data type
On Mon, Jul 8, 2019 at 4:39 PM David Blaikie <dblaikie at gmail.com> wrote:
> There isn't any magic command for this - you'd have to write some C++
> code/a custom LLVM optimization pass.
>
> Though, that said - perhaps it should just be a runtime parameter where
> you rely on LLVM to inline/optimize things away? You could do some
> relatively smaller code
2012 Dec 28
3
installing ruby 1.9.3 in michael hartl's ruby on rails tutorial
I''m working on Michael Hartl''s ruby on rails tutorial
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-development_tools
.
I installed Git, updated my OS to 10.8.2 and downloaded XCode 4.5.2.
when I type in
rvm install 1.9.3
this long thing comes up...
Ruby (and needed base gems) for your selection will be installed shortly.
Before it happens, please read and
2013 Apr 03
1
Process substitution and read.table/scan
Hello, I did the same question on stackoverflow
(http://stackoverflow.com/questions/15784373/process-substitution) but
did not understand completely the issue so I'm reporting it here:
"
I've given a look around about what puzzles me and I only found this:
http://stackoverflow.com/questions/4274171/do-some-programs-not-accept-process-substitution-for-input-files
which is partially