Displaying 20 results from an estimated 9000 matches similar to: "library(): load library from a specified location"
2006 Sep 01
1
Summary --- Local library under Windoze.
Prof. Brian Ripley solved the problem. He wrote:
> I was not aware that this works with relative paths for any version
> of R. Try using a full path, which always works for me.
I tried it using a full path, and bingo! It worked
like a charm.
Under Unix the relative path also works, but.
Prof. Ripley also remarked:
> If indeed your filesystem is readonly, you will have problems
2012 Feb 17
4
Gemfile location
When i am create new project "rails new newProject", ruby create rails
files and next automaticly launch bundle install and setup standart
gems:
C:\Sites>rails new demo
create README.rdoc
.
.
.
create vendor/plugins/.git
run bundle install
.
.
.
Where is standart gemfile location? Or how change standart set of gems?
--
2016 Jul 12
1
Is .packageName part of the official API?
Hi, I've seen that some packages use .packageName internally to infer
their own name. Is that officially supported? I could not find it
documented anywhere.
There's utils::packageName(), which internally looks for .packageName.
However, if the latter is not found, it may return NULL whereas an
error would be more appropriate if a package name is expected. Using
.packageName would give
2013 Nov 12
1
Own Package Installscript
Hi,
i want to use Puppet to install all packages from a webserver (no
repository) .
Therefore I wrote following Script:
class install_package {
case "$operatingsystem" {
SLES: {
notify {"${operatingsystem}
${operatingsystemrelease} detected":}
notify {"Installing $packagename now:":}
2010 Dec 16
5
test whether all elements of a vector are identical
Dear list,
this might be an easy one, but I could figure out a solution (or how to
google the right term).
Is there any way to test whether all elements of a vector are identical?
For numeric vectors I would use
sum(diff(vector)==0)==0
but I have character vectors. Any Ideas?
Cheers
Jannis
2006 Sep 01
2
Local library under Windoze.
Continuing to try to customize my environment for using R under
Windoze, I experimented with installing a package from CRAN in a
local library ``Lib''.
I created the directory ``Lib'' in the folder in which R starts,
and then executed
> install.packages("abind",lib="Lib")
Everything went according to form (I got prompted to choose a mirror,
etc.) until
2005 Sep 13
1
R CMD INSTALL -l /path/to/library packagename
Background:
OS: Linux Mandrake 10.1
release: R 2.1.1
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
Colleagues
Since I upgraded to R 2.1.1, I am getting a an error message from R CMD
INSTALL packagename that says
R_HOME ('/usr/local/lib/R') not found.
That's not too surprising, since R is now in /usr/lib/R, but what is
confusing me is that
R CMD INSTALL -l /path/to/library
2011 Jan 20
2
Procuct of a sequence or vector
Dear list,
is there a function in R that returns the product of a vector?
E.g. if the vector is c(1,2,3,4) it should return 1*2*3*4=24
Cheers
Jannis
2011 Aug 01
3
General indexing in multidimensional arrays
Dear R community,
I have a general question regarding indexing in multidiemensional arrays.
Imagine I have a three dimensional array and I only want to extract on
vector along a single dimension from it:
data <- array(rnorm(64),dim=c(4,4,4))
result <- data[1,1,]
If I want to extract more than one of these vectors, it would now really
help me to supply a logical matrix of the
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members,
I frequently program small scripts and wrap them into functions to be
able to check them with checkUsage. In case these functions (loaded via
source or copy pasted to the R console) use functions from other
packages, I get this error:
no visible global function definition for ?xxxxxxx?
For example:
test = function() {
require(plotrix)
color.legend()
}
2013 Jun 04
2
Error during R CMD check
Hi All,
I am encountering the following error while performing check on the R
package we built:
R CMD check packagename_0.99.0.tar.gz
During startup - Warning message:
Setting LC_CTYPE failed, using "C"
* using R Under development (unstable) (2013-05-14 r62742)
* using platform: x86_64-unknown-linux-gnu (64-bit)
* using session charset: ASCII
* checking for file
2011 Oct 05
3
help with regexp
Dear list memebers,
I am stuck with using regular expressions.
Imagine I have a vector of character strings like:
test <- c('filename_1_def.pdf', 'filename_2_abc.pdf')
How could I use regexpressions to extract only the 'def'/'abc' parts of these strings?
Some try from my side yielded no results:
testresults <-
2010 May 18
4
scaling with relative units in plots or retrieving axes limits in plots
Dears,
a way to define x and y positions in plots in relative numbers (e.g in fractions between 0 and 1 referring to relative positions inside the plot region) would really help me. One example I would need this to would be to add text via text() to a plot always at a defined spot, e.g the upper left corner. Until now I always determined maximum x and y values and used those, but defining
2011 May 04
1
Problems saving ff objects
Dear list,
I am trying to understand and use the ff package. As I had some problems saving some ff objects, and as I did not fully manage to understand the whole concept of *.ff, *.ffData and *.RData with the help of the documentation, I tried to reproduce the examples from the help of ffsave.
When I ran, however : (copied from the help)
message("let's create some ff objects")
2018 Dec 17
2
determining what depends on a rpm
> Am 16.12.2018 um 00:07 schrieb Gordon Messmer <gordon.messmer at gmail.com>:
>
> On 12/15/18 1:05 PM, Frank Cox wrote:
>> Ultimately it would be very useful to have some kind of a tool that would generate a report from the rpms installed on a system and tell you exactly what depends on what else. Among other things you could use that report to remove stuff that's not
2009 Aug 16
1
R CMD check --use-valgrind doesn't run valgrind on tests
R CMD check --use-valgrind <packagename> used to run valgrind on the
tests in the tests directory of the package. But it seems to have stopped.
R-2.9.1 doesn't -- at least on my box -- and neither does R-2.10.0 (devel).
I am not sure when this stopped. I think 2.8.x did this. The only old
R I have around is 2.6.0 and it certainly does.
R CMD check --help for 2.9.1 says (among other
2012 Jun 15
2
time zones and the chron to POSIXct conversion
Hey R folks,
i found some strange (to me) behaviour with chron to POSIXct conversion.
The two lines of code result in two different results, on ewith the
correct time zone, one without:
library(chron)
as.POSIXct(chron('12/12/2000'), tz = 'UTC')
as.POSIXlt(chron('12/12/2000'), tz = 'UTC')
Only the code below would give me a POSIXct object with the correct time
2011 Jan 12
2
RNetCDF: retrieving variable names and units
Dear List,
does anybody has experience with the RNetCDF package? I manage to open a connection and copy data from a ncdf file but would need a way to automatically retrieve variable names (ideally all of them from one file) and units from the file.
Any ideas?
Jannis
2011 Apr 27
3
setting options only inside functions
Dear list members,
is it possible to set some options only inside a function so that the original options are restored once the function is finished or aborted due to an error? Until now I do something like:
dummy=function()
{
old.options=options(error=dummy1())
....
options(old.options)
}
This works for most cases but when the function terminates because of an error and its last
2012 Nov 18
2
list.files, recursively
Dear R developers,
as far as I understand the manual of list.files(), there is only a way
to exclude directories from the returned vector if you use list.files
recursively. In non recursive mode, there seems to be no way of
excluding directories (the include dirs argument does not seem to have
any effect). Would it not be more intuitive and practical to allow the
switching off of directory