Displaying 20 results from an estimated 3000 matches similar to: "Is there a tool to find unused functions?"
2017 Nov 15
0
Is there a tool to find unused functions?
mvbutils::foodweb produces a graphical display of the hierarchy (or
network or ...) of function calls. Isolated functions are not called.
This might help you.
-- Mike
On Wed, Nov 15, 2017 at 12:44 AM, Alexander Engelhardt
<alex at chaotic-neutral.de> wrote:
> I've inherited a large R codebase which has grown over a few years and a few
> different developers.
>
> It
2011 Oct 09
2
"What Calls What" diagram. Flow Chart?
I don't know the right computer science words for this question, I'm
afraid. Apology in advance.
How do you find your way around in somebody else's code? If the user
runs a specific command, and wants to know how the data is managed
until the result is returned, what to do ?
I've tried this manually with tools like mtrace and browser. This is a
bit frustrating because the
2006 Mar 31
3
Function dependency function
Hi,
Is there a function taking a function as an argument, which returns all the
functions it calls, and all the the functions those functions call, and so
on? I could use Rprof, but that would involve executing the function,
which may miss some branches of code. I'd really like a function which
looks at the source code to work out all the functions that could possibly
be called. When I
2018 Apr 02
1
lintr error
library("lintr")
Error: package or namespace load failed for 'lintr' in loadNamespace(j
<- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called 'magrittr'
library("magrittr")
Error in library("magrittr") : there is no package called 'magrittr'
session.Info():
R version 3.4.4 (2018-03-15)
Platform:
2011 Sep 29
3
Finding inter-function dependencies within a package
Hi,
I'd like to know which functions in a package call one specific function.
I think I've seen a tool for identifying such dependencies, but now I can't
find it :-(
Searches of help and R site search for keywords like function, call, tree,
depend haven't helped :-(
Can anyone point me in the right direction?
Thanks in advance,
Keith Jewell
2012 Oct 29
2
Problems plotting a sparse time series in R
Hi guys,
I am logging data about my body (weight, body fat, blood pressure, ..)
in a .csv file and would like to plot this as a time series. I uploaded
the (noisified) .csv, you can see the link in the code I have so far
(you can run the code directly as-is):
df.raw <-
read.csv("http://www.chaotic-neutral.de/temp/stats-noised.csv", sep=";",
dec=".")
2010 Jan 06
1
Code flowchart generator for R ?
Hello dear R help group,
I wish to create a flowchart of my R code (specifically for profiling the
connection of different functions).
Maybe something similar to this:
http://www.fatesoft.com/s2f/
But for R, and that it will be free (open source would be best).
After some searching, I found this package:
http://cran.r-project.org/web/packages/diagram/
But couldn't find a way to this
2011 Sep 08
2
The elegant way to test if a number is a whole number
Hi,
x <- 0.2*5
is.integer(x)
gives me FALSE because R stores it as a float number, right?
Is there an elegant way to work around that problem? Right now
I'm using
x <- 0.2*5
round(x) == x
which returns TRUE. But more strictly I should use all.equal(),
right?
I somehow just don't like the--pardon--ugliness of those pieces
of code. Maybe there is a beautiful
2015 Jan 22
5
Programming Tools CTV
I've had a lot of requests for additions to the reproducible research
task view that fall into a grey area (to me at least).
For example, roxygen2 is a tool that broadly enable reproducibility
but I see it more as a tool for better programming. I'm about to check
in a new version of the task view that includes packrat and
checkpoint, as they seem closer to reproducible research, but also
2008 Oct 07
3
Automatic code diagramming for R?
Greetings -
Is anyone aware of an automatic code diagrammer/flow chart creator that
works for the R language (either a contributed package, or external
software)? I need to explain some code structure of a package I'm working
on to non-R users, and would find it extremely helpful to have such a
program similar to, for example, Visustin (
http://www.aivosto.com/visustin.html ). I can do it
2013 Jan 12
2
X11 plot window doesn't show graphic immediately
Hi r-help,
I have a weird problem. When I plot anything, say plot(1:10), a plot
window opens but it's empty. It looks just like this:
http://i.imgur.com/9uqO6.png
I have to resize the window, either by clicking the fullscreen icon on
the menu bar, or by dragging the borders. Then the plot is shown, but
strangely in the original size of the window, where it was before the
resize:
2011 Jun 26
2
Why is looping in R inefficient, but in C not?
Hey,
I just read another post about calling R from C. Someone on
stackoverflow (DWin makes me suspect its David W.?) referenced this:
http://www.math.univ-montp2.fr/~pudlo/R_files/call_R.pdf
Which made me think: Why is a loop in R bad, but in C not?
And where exactly does looping cost the most? I wrote a piece of code
for my bachelor's thesis where I loop from 1 to 500, and estimate a
2017 Sep 06
3
withr::set_makevars
Hi All;
This problem has come about from trying to learn some of the review practices recommend by rOpensci. One of them is to use the package goodpractice. After installing goodpractice, it kept failing on my own packages which are under development, and I was concerned something was funny in my own , so I have a fork of the package rerddap, and I tested goodpractice on that. I get the
2017 Sep 07
0
withr::set_makevars
withr:::set_makevars() can give that error if the makefile named by the
'old_path' argument (default "~/.R/Makevars) contains more than one
definition of a variable of the form 'name=value'. You can see what file
it is reading and its contents by using the trace() function:
trace(withr:::set_makevars, quote({ cat(old_path, "\n");
writeLines(paste0(" ",
2016 Feb 11
2
inconsistency in treatment of USE.NAMES argument
Changing the vapply() behavior makes sense in principle. I analyzed
the CRAN code base using the R parser and found 143 instances of
calling vapply with USE.NAMES=FALSE. These would need to be inspected
to understand the consequences of the change.
For reference:
/AzureML/R/datasets.R:226
/BBmisc/R/toRangeStr.R:33
/DBI/R/DBDriver.R:205
/Kmisc/R/str_rev.R:37
/Matrix/R/diagMatrix.R:98
2015 Jan 22
2
Programming Tools CTV
On Thu, Jan 22, 2015 at 12:45 PM, Achim Zeileis
<Achim.Zeileis at uibk.ac.at> wrote:
> On Thu, 22 Jan 2015, Max Kuhn wrote:
>
>> I've had a lot of requests for additions to the reproducible research
>> task view that fall into a grey area (to me at least).
>>
>> For example, roxygen2 is a tool that broadly enable reproducibility
>> but I see it more as
2004 Sep 27
1
mtrace and debug
Hello,
pointed to the article "Debugging Without (Too Many) Tears" of Mark
Bravington in Rnews Vol 3/3, December 2003 there is a package mvbutils
mentioned.
So I started to install this package from within R
> install.package(mvbutils)
I receive an error essage that this package is not found! Is due to a
merge,removal or rename of this package?
When I try to follow this
2010 Jun 01
1
mvbutils and trackObjs
Hello Colleagues,
I've recently become a fan of Mark Bravington's mvbutils package for organizing analysis projects in a tree.
Using cd(), Save(), fixr(), mlazy() etcetera solves nicely some of the nuisances that have worried or annoyed me and sometimes caused
big problems over the years. Well thought out.
Now one feature that would be fabulous would be automatic time-stamping of
2018 Feb 19
2
Include pre-existing PDF files as vignettes in an R package?
Thanks, Duncan. The files in question are Emacs Org-mode files, and I
think these are more or less isomorphic to Rmd files, but I haven't
used Org-mode in a long time, so I think the mapping (Org-mode ==>
Rmd) would be painful.
-- Mike
On Mon, Feb 19, 2018 at 1:20 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 18/02/2018 9:06 PM, Michael Hannon wrote:
>>
2010 Mar 31
2
Simplifying particular piece of code
Hello, everyone
I have a piece of code that looks like this:
mrets <- merge(mrets, BMM.SR=apply(mrets, 1, MyFunc, ret="BMM.AV120",
stdev="BMM.SD120"))
mrets <- merge(mrets, GM1.SR=apply(mrets, 1, MyFunc, ret="GM1.AV120",
stdev="GM1.SD120"))
mrets <- merge(mrets, IYC.SR=apply(mrets, 1, MyFunc, ret="IYC.AV120",