Displaying 20 results from an estimated 727 matches for "libpaths".
2013 Feb 15
1
Remove site path from .libPaths
...m sure I am missing something really basic, but I can't figure it out.
I want to start R so that I can specify the location for the Library tree. In principel simple:
As I only want it dependent on the directory I stat R in, I put a .Rprofile file in the directory.
My default path is:
> .libPaths()
[1] "/home/rkrug/R/i686-pc-linux-gnu-library/2.15"
[2] "/usr/lib/R/site-library"
[3] "/usr/lib/R/library"
>
But I want to have it
> .libPaths()
[1] "/home/rkrug/THE_DIRECTORY/library"
[2] "/usr/lib/R/library"
>
The first part is easy...
2011 Aug 11
2
UNC windows path beginning with backslashes: normalizePath bug??
...nce then so this is to update anyone interested (!) and to
ask for comments.
Brief problem statement:
Under Windows, some parts of R don't handle UNC paths beginning with
backslashes. Specifically
a) Sys.glob() fails to find some files breaking (e.g.) Rcmdr plugins
Sys.glob(file.path(.libPaths(), "*/etc/menus.txt"))
fails to find files which are there
b) update.packages(ask='graphics') fails when copying the updates into the
destination folders
In Renviron.site I define the site library with forward slashes, not
backslashes thus...
R_LIBS_SITE=//campden/shares...
2017 Nov 23
5
libPaths displays truncated path?
...uot;
major_minor_version = paste(v["major"],v["minor"],sep=".")
cm_shared_lib_path = paste0(base_path,major_minor_version)
full_cm_shared_lib_path <- c(file.path(chartr("\\", "/", R.home()), "site-library"), cm_shared_lib_path)
.libPaths( c( .libPaths(), full_cm_shared_lib_path ) )
Thus, when I start R I get this:
> full_cm_shared_lib_path
[1] "/usr/lib64/R/site-library"
[2] "/cm/shared/apps/R/site-library/3.4.2"
but also this
> .libPaths()
[1] "/home/loris/R/x86_64-redhat-li...
2009 Dec 06
2
.libPaths(new) stopped working in 2.10
I used to have the following in my .Rprofile:
if (length(.libPaths())==1)
.libPaths(paste(Sys.getenv("HOME"),"/Library/R/",paste(R.version$major,as.integer(R.version$minor),sep='.'),"/library",sep=''))
-- and it added my user-defined library directory. Then I installed
packages there, so during an upgrade, I'd kn...
2005 Apr 26
2
.libPaths()
Hello
I use the function .libPaths()
> .libPaths()
[1] "/usr/local/lib/R/library"
> .libPaths(c("/usr/local/lib/myRlib","/usr/local/lib/library"))
> .libPaths()
[1] "/usr/local/lib/R/library"
but it simply does not pick up the new path. Can anybody help?
(The problem originates fro...
2011 Feb 10
1
How to reset libPaths for root
High,
on all of my computers the first entry in libPaths for root
was /usr/lib64/R/library or /usr/lib/R/library. Now it change at one
(lynx) anyway to
root at lynx:/root(2)# R
R version 2.12.1 (2010-12-16)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and co...
2007 Jul 11
2
Changing default library
Hallo R experts,
I got a question concerning the .libPaths(). if I do the command .libPaths() than the result is /usr/lib/R/library. This is the default folder. I now want to change this one into /home/csc/usr/lib/R/library. I thought it would work with the command .libPaths("/home/csc/usr/lib/R/library"). When I than do the command .libPaths() t...
2005 Nov 06
2
Kernel compilation - 2.6, x86_64, CentOS4.1
Hi
I am having trouble compiling some 2.6 kernels on a x86_64 box under
CentOS4.1. I cannot use xconfig at all and menuconfig on my system is
unreadable. It appears to be something to do with the Qt library but I
have all the necessary bits installed:
qt-devel-3.3.3-9.3
qt-3.3.3-9.3
but note that the second of these only is installed both for x86 and
x86_64 - the first is installed for x86_64
2017 Nov 23
0
libPaths displays truncated path?
...2
>
> and add it to libPath. Why does libPath then display it as
>
> /cm/shared/apps/R/site-library/3.4
Generally one only has a different library for each major version of R. Major versions are consider just the first two numbers in the dot-separated versions system. Apparently libPaths is "smart" enough to make an effort to adhere to that convention. It appears your definition of "major" differs from the usual convention.
--
David
>
> ?
>
> Long version
> ------------
>
> I run a cluster of diskless nodes for which the OS is loaded...
2012 Aug 06
2
Windows 7 and .libPaths()
Hello,
I'm having some trouble trying to set the .libPaths() on Windows 7,
R-2.15.0 and R-2.15.1. The environment variables R_LIBS and R_LIBS_USER
are set according to the help page for .libPaths() and the Rprofile.site
file has the default setting, as shown below. R-2.14.1 recognizes the
lib paths but not R-2.15. Is this a bug or am I doing something...
2016 Feb 20
2
R Package Installation Ignores libPaths Setting
Good day,
I believe from the documentation that folders in R_LIBS should appear in the output of .libPaths, but they do not. The documentation contains "The library search path is initialized at startup from the environment variable R_LIBS ..."
However,
$ export R_LIBS=/users/stgrad/dario/tmp/
$ Rscript -e ".libPaths()"
[1] "/dskh/nobackup/biostat/Bioconductor" "/usr...
2006 Jun 08
2
install.packages() does not warn when 'lib' arg is missing on Linux or Windows
Hello,
Man page for 'install.packages' says that if the 'lib' arg is missing,
then it "defaults to '.libPaths()[1]' with a warning".
But, given the 'install.packages' source code, it seems that this warning
is issued only when 'length(.libPaths()) > 1'.
So typically, this warning will appear on Mac OS X but not on a Linux
or Windows systems with default settings.
On my Mac OS X...
2011 Mar 16
0
.libPaths() on Windows may return duplicated paths
In R v2.12.2 patched (2011-03-13 r54787) and also in R v2.13.0 devel
(2011-03-15 r54806), .libPaths() may return the multiple paths
referring to the same "normalized" path name. Here is an example from
Rterm --vanilla using R v2.12.2 patched:
> paths <- .libPaths(c("C:/", "C:\\"))
> paths
[1] "C:/"
[2] "C:\\"
[3] "C:/PROGRA~1/R/R-2...
2016 Oct 26
2
improve 'package not installed' load errors?
...gt;> Hi R-devel,
>>
>> One of the more common issues that new R users see, and become stumped
>> by, is error messages during package load of the form:
>>
>> > library(ggplot2)
>> Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
>> versionCheck = vI[[j]]) :
>> there is no package called 'Rcpp'
>> Error: package or namespace load failed for 'ggplot2'
>>
>> Typically, error messages of this form are caused simply by one or
>> more dependent pack...
2010 Jul 01
1
How best to set library search path so user libraries come first
I want my local libraries to have priority over the system installed
ones, which, as far as I can make out from help(".libPaths"), means they
have to come first in that list (it doesn't actually_say_ so, but that
seems to be the idea).
We have R_LIBS_USER which looks made for specifying where I keep my own
libraries. Unfortunately it comes last in .libPaths() [which appears to
me to be a bug (1) if that means...
2017 Nov 23
0
libPaths displays truncated path?
...>
> Hi,
>
> TL;DR
> -----
>
> I define the path
>
> /cm/shared/apps/R/site-library/3.4.2
>
> and add it to libPath. Why does libPath then display it as
>
> /cm/shared/apps/R/site-library/3.4
>
> ?
>
Because it is a symbolic link.
?.libPaths says
"For consistency, the paths are always normalized by normalizePath(winslash = "/")."
and ?normalizePath says
"...the Unix-alike platform ... attempts to turn paths into absolute paths in their canonical form (no ./, ../ nor symbolic links)."
HTH,
Chuck
2016 Feb 18
2
R Package Installation Ignores libPaths Setting
Good day,
If the library path is changed with .libPaths, the command
install.packages("/nb/dario/Biostrings_2.39.9.tar.gz", repos=NULL)
fails with
** testing if installed package can be loaded
Error : package ?S4Vectors? required by ?Biostrings? could not be found
However,
running library(S4Vectors) followed by sessionInfo() after the err...
2007 Feb 09
1
speex in C# please help
hello guys this is my code for the C# wrapper.
=================================
using System;
using System.Runtime.InteropServices;
using System.IO;
namespace Speex
{
///<summary>
///the following class is the win32 SPEEX API that retrieve
///methods and structures from the libspeex file
///</summary>
public unsafe class Speex_win32
{
#region Speex Constants
//global speex
2010 Jan 26
1
update.packages on MS Windows with //server/share paths
...08/2008-April/160963.html where Prof
Ripley opines "The issue appears to be that your OS is garbling file names",
and it surely does seem to be a filename problem - in combination R and
Windows don't seem to be handling the '//server/share' path construction. I
have:
> .libPaths()
[1] "//Server02/stats/R/library/2.10"
"//Server02/stats/R/R-Current/library"
I can work around by mapping a drive letter to the '//server/share', but
prefer not to (for local reasons).
In CHANGES.R-2.10.1pat I find
CHANGES IN R VERSION 2.7.2 patched
o dir.cre...
2016 Feb 20
0
R Package Installation Ignores libPaths Setting
Works for me. Which shell are you using? Are you setting .libPaths elsewhere?
Peter-Dalgaards-MacBook-Air:F pd$ R_LIBS=~/tmp Rscript -e '.libPaths()'
[1] "/Users/pd/tmp"
[2] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
Peter-Dalgaards-MacBook-Air:F pd$ export R_LIBS=...