search for: pkgpath

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

2013 Sep 23
0
Unable to execute Java MapReduce (Hadoop) code from R using rJava
...l(columns) || is.null(columnSeparator)) {* * stop("Usage: mueda(<analysis>, <input>, <output>, <columns>, <columnSeparator>, [<cat.cut.off>], [<percentilePoints>], [<histogram>]")* * }* * * * # Gets the absolute path of the external JARS* * #pkgPath = paste(system.file(package="muEDA"), "/jars", sep="")* * pkgPath = paste("../inst", "/jars", sep="")* * * * # Initializes the JVM specifying the directory where the main Java class resides:* * .jinit("pkgPath")* * * * # Adds al...
2012 Jul 24
1
Finding dynamic shared libraries loaded with a package
...d without restarting R. I want to make it automatic so that you can just pass in the name of the package, and it will unload all the relevant shared libraries. Typically, the name of the shared library is the same as the package. So something like this usually works: pkgname <- 'bitops' pkgpath <- system.file(package=pkgname) library.dynam.unload(pkgname, pkgpath) Some R packages have shared libraries with names that differ from the package, and this strategy won't work for them. I'm aware that the NAMESPACE file will have an entry like this: useDynLib(libname) but I don'...
2009 Mar 31
2
Wishlist: optional svn-revision number tag in package DESCRIPTION file
Hi, just a little wish : Could we have one (or maybe more) standardized optional tag(s) for package DESCRIPTION files to cover svn revision info? This would be very useful for bug reporting... I know that any developer is already free to append corresponding lines to DESCRIPTION files to do something of this sort --- e.g. lines like LastChangedDate: {$LastChangedDate: 2009-03-31 $}
2011 May 19
1
r-2.13 fails make check
...## and this testdir is not installed. > pkgSrcPath <- file.path(Sys.getenv("SRCDIR"), "Pkgs") > if(file_test("-d", pkgSrcPath)) { + ## could use file.copy(recursive = TRUE) + system(paste('cp -r', shQuote(pkgSrcPath), shQuote(tempdir()))) + pkgPath <- file.path(tempdir(), "Pkgs") + op <- options(warn=2) # There should be *NO* warnings here! + ## pkgB tests an empty R directory + dir.create(file.path(pkgPath, "pkgB", "R"), recursive = TRUE, + showWarnings = FALSE) + p.lis &l...
2013 Feb 08
1
ClassNotFoundException when running distributed job using rJava package
...|| is.null(input) || is.null(output) || is.null(scalaLib) || is.null(sparkCore)) { stop("Usage: muMST(<mesosMaster>, <input>, <output>, <scalaLib>, <sparkCore>, [<inputSplits>]") } # Gets the absolute path of the external Scala and Java JARS pkgPath = paste(system.file(package="MuMstBig"), "/jars", sep="") # Initializes the JVM specifying the directory where the main Java class resides: .jinit("pkgPath") # Adds all the required JARs to the class path: .jaddClassPath(paste(pkgPath, "Prims.j...
2008 Oct 14
1
problem with update.packages (PR#13161)
On 14 October 2008 at 09:39, Simon Blomberg wrote: | Hi, is anyone else getting this error? Could this be a bug?: | | > update.packages(ask=FALSE) | Error in read.dcf(pkgpath, fields = fields) : | Line starting 'unix; ...' is malformed! | | > sessionInfo() | R version 2.8.0 RC (2008-10-12 r46696) | x86_64-pc-linux-gnu Confirmed in plain R using the same package built this morning from last night's tarball from Denmark: Running update.packages() yi...
2008 Oct 14
1
problem with update.packages (PR#13161)
On 14 October 2008 at 09:39, Simon Blomberg wrote: | Hi, is anyone else getting this error? Could this be a bug?: | | > update.packages(ask=FALSE) | Error in read.dcf(pkgpath, fields = fields) : | Line starting 'unix; ...' is malformed! | | > sessionInfo() | R version 2.8.0 RC (2008-10-12 r46696) | x86_64-pc-linux-gnu Confirmed in plain R using the same package built this morning from last night's tarball from Denmark: Running update.packages() yi...
2014 Jun 16
1
index.search
...on("verbose"), setRNG = FALSE, ask = getOption("example.ask"), prompt.prefix = abbreviate(topic, 6), run.dontrun = FALSE) { if (!character.only) { topic <- substitute(topic) if (!is.character(topic)) topic <- deparse(topic)[1L] } pkgpaths <- find.package(package, lib.loc, verbose = verbose) file <- index.search(topic, pkgpaths, TRUE) return(file) } > example2("deMorgan", package="QCA") Error in example2("deMorgan", package = "QCA") : could not find function "index.sea...
2007 Sep 18
1
Re-attaching a package environment drops the attributes
...<- as.environment("package:utils2") print(env2) ## <environment: package:utils2> ## attr(,"name") ## [1] "package:utils2" This becomes a problem, because the 'path' attribute is dropped causing: packageDescription("utils2") ## Error in if (pkgpath == "") { : argument is of length zero sessionInfo() ## Error in if (pkgpath == "") { : argument is of length zero Again, this might or might not expected. Finally: > sessionInfo() R version 2.6.0 alpha (2007-09-14 r42843) i386-pc-mingw32 locale: LC_COLLATE=English_United...
2011 Feb 17
0
[BioC] Make.cdf.package error
...make a cdf package. (My CDF file size is 1.12Go). I tried several methods but the same error occured Method 1 > #Set the working directory > setwd("D:/Analyse R/Cel files") > #library to create cdf env > library("makecdfenv") >#Create cdf environment >pkgpath <- tempdir() >make.cdf.package("file.cdf", cdf.path=getwd(), compress=FALSE, species = "Homo_sapiens", package.path = pkgpath, verbose=TRUE) dir(pkgpath) Method 2 #Set the working directory setwd("D:/Analyse R/Cel f...
2002 Nov 18
2
library() help for Windows
Dear R users, I have just upgraded R v1.5.0 to v1.6.1 for Windows but have trouble loading my library of R only functions (no C calls). After examining the "library" script this difference was found: (v1.5.0) which.lib.loc <- dirname(pkgpath) descfile <- system.file("DESCRIPTION", package = package, lib.loc = which.lib.loc) if (nchar(descfile)) testRversion(descfile) if (exists("packageHasNamespace") && packageHasNamespace(package,...
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
...alled with `library` against installed packages. svn diff: Index: src/library/base/R/library.R =================================================================== --- src/library/base/R/library.R (revision 76727) +++ src/library/base/R/library.R (working copy) @@ -300,8 +300,13 @@ pkgpath <- find.package(package, lib.loc, quiet = TRUE, verbose = verbose) if(length(pkgpath) == 0L) { - if(length(lib.loc) && !logical.return) + if(length(lib.loc) && !logical.return) { +...
2008 Oct 13
2
problem with update.packages
Hi, is anyone else getting this error? Could this be a bug?: > update.packages(ask=FALSE) Error in read.dcf(pkgpath, fields = fields) : Line starting 'unix; ...' is malformed! > sessionInfo() R version 2.8.0 RC (2008-10-12 r46696) x86_64-pc-linux-gnu locale: LC_CTYPE=en_AU.UTF-8;LC_NUMERIC=C;LC_TIME=en_AU.UTF-8;LC_COLLATE=en_AU.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_AU.UTF-8;LC_PAPER=en_AU.UTF-8;LC...
2015 Sep 16
2
R-devel_2015-09-14 throws an error in reg-packages test
...make[2]: *** [test-Reg] Error 2 make[1]: *** [test-all-basics] Error 1 make: *** [check] Error 2 Looking at reg-packages.Rout.fail shows: > > ## else w/o clause: > ## could use file.copy(recursive = TRUE) > system(paste('cp -R', shQuote(pkgSrcPath), shQuote(tempdir()))) > pkgPath <- file.path(tempdir(), "Pkgs") > ## pkgB tests an empty R directory > dir.create(file.path(pkgPath, "pkgB", "R"), recursive = TRUE, + showWarnings = FALSE) > p.lis <- if("Matrix" %in% row.names(installed.packages(.Library))) +...
2012 Oct 13
0
installation of R (2.14.1 and 2.15.1) fails due to [reg-packages.Rout] Error
...## and this testdir is not installed. > pkgSrcPath <- file.path(Sys.getenv("SRCDIR"), "Pkgs") > if(file_test("-d", pkgSrcPath)) { + ## could use file.copy(recursive = TRUE) + system(paste('cp -r', shQuote(pkgSrcPath), shQuote(tempdir()))) + pkgPath <- file.path(tempdir(), "Pkgs") + # op <- options(warn = 2) # There should be *NO* warnings here! + ## pkgB tests an empty R directory + dir.create(file.path(pkgPath, "pkgB", "R"), recursive = TRUE, + showWarnings = FALSE) + p.lis...
2009 Oct 22
1
Error in link in Rd file stops package installation
...=================== --- src/library/tools/R/Rd2HTML.R (revision 50178) +++ src/library/tools/R/Rd2HTML.R (working copy) @@ -305,7 +305,7 @@ if (!OK) { ## so how about as a topic? file <- utils:::index.search(parts$targetfile, pkgpath) - if (nzchar(file)) { + if (length(file)>0 && nzchar(file)) { warnRd(block, Rdfile, "file link ", sQuote(parts$targetfile), " in package ",...
2008 Oct 14
0
[R-sig-Debian] problem with update.packages (PR#13162)
Dirk Eddelbuettel wrote: > On 14 October 2008 at 09:39, Simon Blomberg wrote: > | Hi, is anyone else getting this error? Could this be a bug?: > | > | > update.packages(ask=FALSE) > | Error in read.dcf(pkgpath, fields = fields) : > | Line starting 'unix; ...' is malformed! > | > | > sessionInfo() > | R version 2.8.0 RC (2008-10-12 r46696) > | x86_64-pc-linux-gnu > > Confirmed in plain R using the same package built this morning from last > night's tarball fro...
2010 Mar 17
1
Suggestion: Not having to export .conflicts.OK in name spaces
...package ) if(warn.conflicts && - !exists(".conflicts.OK", envir = env, inherits = FALSE)) + !exists(".conflicts.OK", envir = ns, inherits = FALSE)) checkConflicts(package, pkgname, pkgpath, nogenerics, ns) runUserHook(package, pkgpath) In order to be consistent, a patch for attach() should also be provided, which requires some more changes, but I won't spend time on that unless the above is a wanted feature. /Henrik
2007 Aug 16
1
use AnnBuilderSourceUrls with local path insted of ftp adress
...e is not responding! The full code of the script is this: library(AnnBuilder) list<-options("AnnBuilderSourceUrls") list$AnnBuilderSourceUrls$EG<-"/path/to/file/" options("AnnBuilderSourceUrls"=list$AnnBuilderSourceUrls) GOPkgBuilder(pkgName = "GO", pkgPath = ".", filename = "go_200706-termdb.obo-xml.gz", version = "v.1.0", author = list(author = "author", maintainer = "maintainer <main.tainer at mail.net>") ) Thanks in advance for any help. Daniela Albrecht -- Psssst! Schon vom neuen GMX Mu...
2015 Jun 08
2
Bug in loadNamespace?
...E needed I've tried debugging this, and the bad lines are these, in loadNamespace: R_version_built_under <- as.numeric_version(built$R) if (R_version_built_under < "3.0.0") stop(gettextf("package %s was built before R 3.0.0: please re-install it", sQuote(basename(pkgpath))), call. = FALSE, domain = NA) These are in the src/library/base/R/namespace.R file, around line 379. If I stop it before the if and evaluate R_version_built_under, it looks fine. If I stop it there and evaluate R_version_built_under < "3.0.0" I get NA. If I evaluate it again wi...