search for: write_packages

Displaying 20 results from an estimated 33 matches for "write_packages".

2012 May 08
1
what folder to run write_PACKAGES in?
I set up a local repo for testing packages. My packages are not showing up from the repository when viewed by Linux clients. I suspect this is a web administrator/firewall issue, but it could be I created the repo wrongly. I am supposed to run write_PACKAGES separately in each R-version folder. Right? Maybe other novices can use these scripts, if they are not wrong :) Here's the file structure. On the file space that the Web server can see, I create a folder "/tools/kran" and directories bin macosx leopard c...
2012 Nov 06
0
\value section for write_PACKAGES not updated
Hi, Found in \value section of man page for tools::write_PACKAGES: Invisibly returns the number of packages described in the resulting \file{PACKAGES} and \file{PACKAGES.gz} files. If \code{0}, no packages were found and no files were written. Those days (don't know when this has changed exactly), PACKAGES and PACKAGES.gz are written, even if no p...
2012 Dec 13
2
Installing Packages from a Local Repository
...but I haven't been able to successfully install my package from the repo. Here's the code that I've run. ################################## sessionInfo() getOption("repos") setwd("Q:/Integrated Planning/R") list.files(path = ".", recursive = TRUE) tools::write_PACKAGES("bin/windows/contrib/2.15", type = "win.binary") list.files(path = ".", recursive = TRUE) install.packages("RTIO") install.packages("RTIO", repos = "Q:/Integrated Planning/R") install.packages("RTIO", repos = "Q:/Integrated...
2012 Nov 02
1
Can't install.packages() from local repo in 2.15.2
...age installer: 2.15.2 (r61015) ``` I have Rtools 2.16 installed (as this is for R >2.15.1 to R 2.16.x). I have also followed the instructions here: http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset I copy that to L:/R/bin/windows/contrib/2.15 (for example), run `tools::write_PACKAGES()` in that directory. That successfully generates the packages file. I also run `tools::write_PACKAGES()` in L:/R/src/contrib to generate an empty PACKAGES file. I have the following in my .Rprofile (among other things): ``` .First <- function () { options( repos = c(CRAN = "...
2018 Dec 06
0
Package 'tools' support for linux binary packages?
...my digest package this creates eg digest_0.6.18.1_R_x86_64-pc-linux-gnu.tar.gz where 'x86_64-pc-linux-gnu' is also what `R.version[["platform"]]` returns. However, once I started to look into supporting this via my repository helper package `drat`, I realized that the `tools::write_PACKAGES` function only supports the three file types `drat` already knows about: source, and mac and windows binaries. >From the help page Usage: write_PACKAGES(dir = ".", fields = NULL, type = c("source", "mac.binary", "win.bina...
2005 Nov 16
1
update R packages in local repos
I try to update R packages via my local repository. I put all R packages in g:/myFolder/myRepository, I do like > library(tools) > write_PACKAGES("g:/myFolder/myRepository") > options(repos=c(LocalR="file://g:/myFolder/myRepository")) > getOption("repos") LocalR "file://g:/myFolder/myRepository" > update.packages(ask = "graphics") Error in gzfile(file, &quo...
2011 Aug 19
1
Error in read.dcf(file = tmpf) : Line starting '<head> ...' is malformed!
...m on R-Forge but I still need to have various versions of my package that R-Forge does not build (for R 2.8.1 for example). So I followed the instructions in this document: Hhttp:// cran.r-project.org/doc/manuals/R-admin.html#Setting-up-a-package-repository and used this function as recommended: *write_PACKAGES()* Now, when I try to install or update my package, I get: *install.packages("bmisc", repos="http://www.benoitr.comze.com/R")** > Error in read.dcf(file = tmpf) : Line starting '<head> ...' is malformed!* Can someone help me with this ? Benoit -------------...
2013 Mar 21
1
missing space in R version specifier makes PACKAGES file unreadable by install.packages()
...repos="http://george2/BBS/2.12/bioc") Error in do.call(op, list(v_c, v_t[[op]])) : could not find function "R (>=2.15.1)" The problem can be fixed by adding a space after >= in the offending package's DESCRIPTION file and re-generating the PACKAGES file with tools:::write_PACKAGES(). However, this worked OK in r62077. I'm not sure if >=2.15.1 (without the space) is valid syntax, but I wonder if R can be a bit more forgiving, as this issue derailed our daily builds. > sessionInfo() R version 3.0.0 alpha (2013-03-18 r62312) Platform: x86_64-apple-darwin10.8.0 (64-b...
2007 Sep 26
1
Lack of final newline in write.dcf changes append usage
The change in r42731 eliminating the final blank line when writing DCF files changes the way 'append' can be used in 'write.dcf' and I was wondering if this is intentional. Basically, I want to write a data frame to DCF format one row at a time, so I make use of repeated calls to 'write.dcf(append = TRUE)'. However, in R 2.6.0RC the resulting DCF file is not formatted
2022 Oct 13
1
tools:: extracting pkg dependencies from DCF
...ld like to raise a request for a simple helper function. Utility function to extract package dependencies from DESCRIPTION file. I do think that tools package is better place, for such a fundamental functionality, than community packages. tools pkg seems perfect fit (having already great function write_PACKAGES). Functionality I am asking for is already in R svn repository since 2016, in a branch tools4pkgs. Function is called 'packages.dcf'. Another one 'repos.dcf' would be a good functional complementary to it. Those two simple helper functions really makes it easier for organizations...
2006 Aug 29
1
PATCH: Add fields argument to installed.packages and available.packages
Hi all, The write_PACKAGES function has a 'fields' argument that allows a user generating a PACKAGES file to specify additional fields to include. For symmetry, it would be nice for the available.packages function to be able to read those extra fields when specified. Similarly, it would be useful for installed.packa...
2007 Sep 12
1
Create a "local" repository
I'd like to create a small "local" repository that would be used to install a package for a class of students at their home. I don't want to upload it to CRAN, as I don't think it should be disseminated at that level. What I'd like to do is: > where="http://mysite.com/" > install.packages("mypackage",contriburl=where) When I try this, (after
2009 Oct 21
1
Keeping package sources for recompilation with new R version?
Hi I am using Ubuntu Hardy, and I installing many packages from source. I am keeping my R packages fairly up to date. My question is: is there a way, of keeping the source packages, so that when I am installing a new version of R, an update.packages(checkBuilt=TRUE) will only fetch the packages when newer ones are available, but otherwise will use the local copies? To rephrase it, is it
2010 Jun 22
1
Installing packages from folder on the computer
i am able to install zip files of packages from local zip files using the file.choose() for the package argument in install.packages() function in R console and also from the Packages menu>install from local zip files. But if there are many packages to install (say >15 or 20), then i have to factor in dependencies of 15-20 packages which may be more than 100 or 200 packages in all to be
2008 Nov 19
2
Strategy for downloading packages
I have a client who wants to install R and a custom package on a machine with no internet connection, so he wants to put everything needed on a CDROM and install from there. I've told him how to work out what is needed, but it seems that too much manual work is needed: he needs to install the packages from .zip files (this is Windows) in the right order so dependencies are met, etc. Is
2006 Jul 16
1
install.packages for local zip files
O/S: Linux R version : 2.2.1 The R server doesn't have http internet access. And the sys admins will not install the R libraries that I requested. So I have downloaded the packages that I want to intall and have moved them into my home directory on the server. These are a series of *.tar.gz files. I want to install the R libraries in my home directory, but I can't get it to work.
2011 Aug 12
1
install packages from intranet
Hi, I'm new to R. Apologies if this is a simple query, I've searched the mailing lists and docs but can't find a solution to my problem. I'm trying to make some packages available on our intranet. During development the 'intranet' is a webserver running on localhost. * When I call "install.packages" I get a mesage about not being able to access 'index
2007 Nov 14
2
package installation order
I have roughly 80 or so packages sources. These were obtained by taking a snapshot of certain CRAN packages a few months ago using install.packages( pkgs = pckNames, destdir = "/home/max", repos = "http://cran.r-project.org" dependencies = c("Depends", "Imports", "Suggests")) We need to install these versions of the
2010 Sep 17
3
How to set up an own package repository
Dear List, I'd like to set up a package repository so I can use install.packages() on it for home-grown packages. I set up an AMPP infrastructure on a windows box already, but I'm pretty lost with respect to what to do next as I didn't do any web-programming/admin yet. Could anyone recommend some r-specific tutorials or has a couple of suggestions for me? I've had a look at the
2011 Sep 15
1
Can't get installing a package source (.tar.gz) from a web page to work...
I have created an R-package with datasets which I want my students to install (the package is not on CRAN). 1) I've put the package on the web in a directory called 'data' and I thought I could do: > install.packages("http://gbi.agrsci.dk/statistics/courses/2011-ISMLS-course/data/LiSciData_0.0-03.tar.gz",repos=NULL,type="source") Warning: invalid package