Displaying 16 results from an estimated 16 matches for "winslash".
2015 Mar 11
1
normalizePath output depends on existence of directory
Dear all,
I'm not sure whether this is intended behaviour or a bug. The path returns
from normalizePath is different when the directory doesn't exist. I have
included a reproducible example.
path <- tempfile()
missing.dir <- normalizePath(path, winslash = "/", mustWork = FALSE)
dir.create(path)
existing.dir <- normalizePath(path, winslash = "/", mustWork = FALSE)
> all.equal(missing.dir, existing.dir)
[1] "1 string mismatch"
> missing.dir
[1] "C:/Users/THIERR~2/AppData/Local/Temp/RtmpagA8Gx/filed5c2cd03...
2011 Aug 11
2
UNC windows path beginning with backslashes: normalizePath bug??
...lashes, not
backslashes thus...
R_LIBS_SITE=//campden/shares/workgroup/stats/R/library/%v
... but the startup process seems to replace them with forward slashes.
I guess because .libPaths with a 'new' argument calls normalizePath which
changes leading slashes to backslashes, even with winslash="/"
> normalizePath("//campden/shares/workgroup/stats/R/library", winslash="/")
[1] "\\\\campden/shares/workgroup/Stats/R/library"
I've corrected (??) this by inserting a line into Rprofile.site
assign(".lib.loc", gsub("\\", &quo...
2011 Dec 28
1
folders of path - platform independent (repost)
Hello, (sorry re-posting due to typo)
I'm attempting to get the folders of a path in a robust way (platform
independent, format independent). It has to run on Windows and Linux and
tolerate different formats.
For these: (The paths don't actually exist in Linux but you get the idea.)
Windows:
file_full_path = "C://Program Files//R//R-2.13.1//NEWS.pdf"
file_full_path =
2017 Nov 23
0
libPaths displays truncated 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
2013 Apr 27
3
path reference problems in R 3.0.0
...ength 1408286 bytes (1.3 Mb)
opened URL
downloaded 1.3 Mb
Error in install.packages : path[1]="c:\Docume~1\melissa\R\win-library\3.0":
Access is denied
At that point, I noticed that a similar error was occurring when R loads:
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="c:/Docume~1/melissa/R/win-library/3.0": Access is denied
The relevant directory does exist, although it keeps getting set to
"read-only". I can't imagine that being a big issue if I'm running R as an
administrator though
C:\Users\melissa\R\w...
2011 May 02
1
Problems with Rterm 2.13.0 - but not RGui
Hi all,
I have just installed R 2.13.0 and I am experiencing problems with the terminal, but not the with the GUI interface.
I am Windows 7.
When running "R" or "Rterm" from a commandline I receive the following:
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[3]="C:/Programmer/R/R-2.13.0/library": Adgang n?gtet
R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You a...
2017 Nov 23
5
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
?
Long version
------------
I run a cluster of diskless nodes for which the OS is loaded
directly into RAM and other software is provided by an NFS server.
However, in the case of R, we use the R version provided
2020 Jun 10
4
Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?
...apply(path, renv_dependencies_find_impl, root = root)
9: renv_dependencies_find(path, root)
8: (function (path = getwd(), root = NULL, ..., progress = TRUE,
errors = c("reported", "fatal", "ignored"), dev = FALSE)
{
path <- renv_path_normalize(path, winslash = "/", mustWork = TRUE)
root <- root %||% renv_dependencies_root(path)
if (exists(path, envir = `_renv_dependencies`))
return(get(path, envir = `_renv_dependencies`))
renv_dependencies_begin(root = root)
on.exit(renv_dependencies_end(), add = TRUE...
2020 Jun 22
2
Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?
...> > 9: renv_dependencies_find(path, root)
> > 8: (function (path = getwd(), root = NULL, ..., progress = TRUE,
> > errors = c("reported", "fatal", "ignored"), dev = FALSE)
> > {
> > path <- renv_path_normalize(path, winslash = "/", mustWork = TRUE)
> > root <- root %||% renv_dependencies_root(path)
> > if (exists(path, envir = `_renv_dependencies`))
> > return(get(path, envir = `_renv_dependencies`))
> > renv_dependencies_begin(root = root)
> &...
2020 Jun 10
0
Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?
...s_find_impl, root = root)
> 9: renv_dependencies_find(path, root)
> 8: (function (path = getwd(), root = NULL, ..., progress = TRUE,
> errors = c("reported", "fatal", "ignored"), dev = FALSE)
> {
> path <- renv_path_normalize(path, winslash = "/", mustWork = TRUE)
> root <- root %||% renv_dependencies_root(path)
> if (exists(path, envir = `_renv_dependencies`))
> return(get(path, envir = `_renv_dependencies`))
> renv_dependencies_begin(root = root)
> on.exit(renv_...
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 wrong?
(I've also tried with
2020 Jun 22
0
Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?
...env_dependencies_find(path, root)
>>> 8: (function (path = getwd(), root = NULL, ..., progress = TRUE,
>>> errors = c("reported", "fatal", "ignored"), dev = FALSE)
>>> {
>>> path <- renv_path_normalize(path, winslash = "/", mustWork = TRUE)
>>> root <- root %||% renv_dependencies_root(path)
>>> if (exists(path, envir = `_renv_dependencies`))
>>> return(get(path, envir = `_renv_dependencies`))
>>> renv_dependencies_begin(roo...
2011 Apr 13
0
R 2.13.0 is released
...?scientific? entry below.) This affects
_many_ *.Rout.save checks in packages.
NEW FEATURES:
? normalizePath() has been moved to the base package (from utils):
this is so it can be used by library() and friends.
It now does tilde expansion.
It gains new arguments winslash (to select the separator on
Windows) and mustWork to control the action if a canonical path
cannot be found.
? The previously barely documented limit of 256 bytes on a symbol
name has been raised to 10,000 bytes (a sanity check). Long
symbol names can sometimes occur w...
2011 Apr 13
0
R 2.13.0 is released
...?scientific? entry below.) This affects
_many_ *.Rout.save checks in packages.
NEW FEATURES:
? normalizePath() has been moved to the base package (from utils):
this is so it can be used by library() and friends.
It now does tilde expansion.
It gains new arguments winslash (to select the separator on
Windows) and mustWork to control the action if a canonical path
cannot be found.
? The previously barely documented limit of 256 bytes on a symbol
name has been raised to 10,000 bytes (a sanity check). Long
symbol names can sometimes occur w...
2020 Jun 24
3
Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?
...d(path, root)
> >>> 8: (function (path = getwd(), root = NULL, ..., progress = TRUE,
> >>> errors = c("reported", "fatal", "ignored"), dev = FALSE)
> >>> {
> >>> path <- renv_path_normalize(path, winslash = "/", mustWork = TRUE)
> >>> root <- root %||% renv_dependencies_root(path)
> >>> if (exists(path, envir = `_renv_dependencies`))
> >>> return(get(path, envir = `_renv_dependencies`))
> >>> renv_de...
2019 Sep 23
5
Consulta
Buenas tarde a todo en s:
Tenia la versión de R 3.6 y utilizaba la paquetería de pdftools para extraer información de archivos en pdf actualice la versión 3.6.1 y ya no reconoce la paquetería alguien que me pueda ayudar. Prácticamente no reconoce las funciones de pdftools
library(pdftools)
library(stringr)?
library(NLP)?
library(tm)?
library(tesseract)?
library(magick)?