similar to: Finding Imported Packages

Displaying 20 results from an estimated 1400 matches similar to: "Finding Imported Packages"

2010 Sep 19
3
Repeating values in a list
I have a list that looks like this ... > have <- list(a=7,b=3,c=1) > have $a [1] 7 $b [1] 3 $c [1] 1 and I want to have a simple way to change it to the following without re-typing the values ... > desire <- list(a=c(7,7),b=c(3,3),c=c(1,1)) > desire $a [1] 7 7 $b [1] 3 3 $c [1] 1 1 In other words, I need to create the list in desire from the list in have. In my
2009 May 08
1
Citing R/Packages Question
I used R and the quantreg package in a manuscript that is currently in the proofs stage. I cited both R and quantreg as suggested by citation() and noted the version of R and quantreg that I used in the main text as "All tests were computed with the R v2.9.0 statistical programming language (R Development Core 2008). Quantile regressions were conducted with the quantreg v4.27 package
2009 Apr 20
2
plotCI (plotrix) problem
I am attempting to create a plot with intervals "stretched" in the x-direction using plotCI() in the plotrix package. The same data provides an appropriate set of intervals when "stretched" in the y-direction but I only get a lower interval when "stretched" in the x-direction. The data are as follows mns <-
2010 Aug 10
4
Function to Define a Function
I am trying to define a general R function that has a function as the output that depends on the user's input arguments (this may make more sense by looking at the toy example below). My real use for this type of code is to allow a user to choose from many parameterizations of the same general model. My "issue" is that when I compile a package with this type of code in it I get a
2009 Jan 23
3
Table Modification
I am trying to construct a two-way table where, instead of printing the two-way frequencies in the table, I would like to print the values of a third variable that correspond to the frequencies. For example, the following is easily constructed in R > fact1 <- factor(sample(LETTERS[1:3],10,replace=TRUE)) > fact2 <- factor(sample(LETTERS[25:26],10,replace=TRUE)) > fact3
2016 Feb 13
0
Deprecating old pkgDepends(), package.dependencies() in tools
We will deprecate the functions pkgDepends(), package.dependencies() and 2-3 less prominent ones from package tools, in R's development version (short "R-devel"), i.e., the one that will probably become R 3.3.0 sometime in April. Instead, package_dependencies() should be used, possibly after non-default use of available.packages() to be used as argument 'db', i.e.,
2009 Apr 04
2
help with formula and data= argument
Sorry for posting this twice, but I still have not solved this problem and am hoping for some assistance. I am attempting to write a function that is flexible enough to respond to the user providing a formula (with a data= argument) or not (similar to plot(x,y) versus plot(y~x,data=data)). I have found a method to work with this in a simple case but am having trouble determining how to
2010 Jun 26
4
optim() not finding optimal values
I am trying to use optim() to minimize a sum-of-squared deviations function based upon four parameters. The basic function is defined as ... SPsse <- function(par,B,CPE,SSE.only=TRUE) { n <- length(B) # get number of years of data B0 <- par["B0"] # isolate B0 parameter K <- par["K"]
2020 Oct 16
2
tools::package_dependencies problems
Hello, All: tools::package_dependencies('Ecfun') failed to find how my development version of Ecfun was using rJava, which generated errors in "R CMD build Ecfun". This is because package_dependencies by default uses CRAN and ignores locally installed packages. What do you think about having this function check both locally installed and CRAN versions? It can
2010 Apr 09
0
possible bug in tools:::getRemotePkgDepends ?
Executive summary: getRemotePkgDepends seems to use the wrong default string to (try to) download the CRAN package information. ======================== Someone asked me about the behavior of tools::pkgDepends() , and in investigating I discovered the following: ## tools:::getRemotePkgDepends ## undebug(tools:::getRemotePkgDepends) tools::pkgDepends("GDD") ## Error in
2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
Thank you Gabriel, Just for future readers. Below is a base R way to address this common problem, as instructed by you (+stopifnot to suppress print). Rscript -e 'stopifnot(file.copy("DESCRIPTION", file.path(tdir<-tempdir(), "PACKAGES"))); db<-available.packages(paste0("file://", tdir));
2009 Apr 29
1
RweaveHTML (R2HTML) Help
I have found Sweave() to be great for producing PDF documents. I have been experimenting with RweaveHTML (from the R2HTML) package and have had moderate success. My main issue has been that I simply want the R output to be shown verbatim in the HTML document but RweaveHTML tends to convert most output to a table, for example. So, is there a way to force the RweaveHTML driver to simply provide
2007 Sep 27
5
New R website: R-Cookbook.com
R Community, I've put together a website that I thought this mailing list might be interested in: http://www.r-cookbook.com It's a (free) community-driven content management system for R "recipes", or working examples. Some of the features of the site are code highlighting, recipe ratings, recipe comments, personal "recipe boxes" to save your favorite
2023 Nov 09
1
Dependency errors for package pracma
I tried to update my package {pracma} on CRAN from 2.4.2 (2022-09-21) to version 2.4.4 (2023-11-08). This package reverse depends / imports / suggests on 350 packages on CRAN and 25 packages on Bioconductor. The only changes are small corrections on some help files, a new function for stereographic projection, and `gcd` and `Lcm` require integer inputs now (these functions are not used in the
2010 Jan 25
3
Matching a character in a string
Hello. Sorry for this very basic question but I didn't find (of didn't understand) the answer either in the help or in the online guide. I have a string, let's say "hello". I want to know if there is some character in it, let's say an 'o'. I tried > charmatch("o", strstplit("hello","")) but it gives NA (why??) Thinking it may
2014 Dec 20
2
no access to certain WEB sites using CentOS 6.5
HW: Lenovo T520 laptop with MS WIN 7 OR dedicated PC (DELL GX 280) SW: CentOS 6.5 (64-bit) installed using VMware Player on MS WIN 7 host CASE A) -- BRIDGED networking selected CASE B) -- NAT networking OR CentOS 6.5 i(32-bit) nstalled on real HW (DELL OptiPlex GX 280) ___issue____ at hand: The default Firefox ESR browser (17.0.10) does not find many web pages.
2010 Jan 03
1
Swfdec and Ffmpeg only
Hi, I'm the founder and still very active developer of Puppy Linux, and a variant named Quirky. Puppy is a cut-down distro, typically 100MB live-CD. We have always used the Adobe Flash player, though I have stayed with the Flash 9 player (9.0.48.0) due to its smaller size. Puppy also has ffmpeg, xine-lib and gxine. Recently I have been experimenting with Swfdec and Swfdec-mozilla. I started
2008 Nov 02
1
Simple R (in Sweave) Question
I am writing a report using Sweave with specific R output incorporated into the text using the Sexpr{} command. I have run into two specific issues: 1) If the result inside the Sexpr{} command is an integer less than 10 I would like to print the ?word? for that number ? e.g., ?seven? for 7. 2) If a p-value is ?equal to zero? to some arbitrary number of decimal places -- e.g.,
2023 Nov 22
1
Matrix 1.6.2+ versus Matrix 1.6.2-
Naras, Thanks. I'm a bit confused, because Rmosek does not declare Matrix as a dependency: > tools::package_dependencies("Rmosek", which = "all")[[1L]] [1] "pkgbuild" nor does it contain code needing compilation: > packageDescription("Rmosek", fields="NeedsCompilation") [1] "no" Can you explain the
2017 Aug 01
1
How automatic Y on install y/n prompts?
You are right, maintainer does keep a list of model's packages. So how do I use a variable instead of $adaboost$? getModelInfo()$adaboost$library Also, server not found: http://rwiki.sciviews.org/doku.php?id=getting-started:reference-cards:getting-help On Tue, Aug 1, 2017 at 11:46 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > I have provided you all the