Displaying 20 results from an estimated 30000 matches similar to: "how to replace a single forward slash with a double backward slash in a string?"
2009 Dec 13
2
how to replace a single backward slash with a double backward slash?
Dear R-helpers:
Hours ago, I asked how to replace a single forward slash with a double
backward slash and recieved great help. Thanks again for all the repliers.
In the meantime, I wonder how to replace a single backward slash with a
double backward slash?
e.g., I want change "c:\test" into "c:\\test"
I tried the following but does not work.
2009 Jan 23
2
forward slash vs double backslash R and Tinn-R
I installed the newest version of R and once again ran into problem
with Tinn-R failing when trying to use the R explorer. I had this
problem once before and solved it when I added the following
.trPaths = c(
'C:/Documents and Settings/fbuchins/Application Data/Tinn-R/tmp/',
'C:/Documents and Settings/fbuchins/Application Data/Tinn-R/tmp/search.txt',
'C:/Documents and
2005 Jan 19
4
How to replace slashes with back slashes
Dear R-helpers
I am running R2.0.0 under Windows 2000. I am compiling a number of file paths into a simple text file that will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work.
> gsub('/', '\\',
2010 Dec 03
1
Deconflict Unix Forward / and Windows Back Slash \ Directory
Is it possible to tell WINE to deconflict Unix-style forward slashes and Windows-style backslashes in directory names? I have a problem where a .EXE file goes looking for directory and file names that look like
/home/base_dir\sub_dir\file.dat
[NOTE mixed forward slash and backslash / vs \ in full directory name]
The base directory "/home/base_dir" is passed to the .EXE (which it finds
2011 Aug 03
2
strsplit and forward slash '/'
Hi All,
is there a way of using strsplit with a forward slash '/' as the splitting point?
For data such as:
1 T/T C/C 16/33
2 T/T C/C 33/36
3 T/T C/C 16/34
4 T/T C/C 16/31
5 C/C C/C 28/29
6 T/T C/C 16/34
strsplit(my.data[1,1], "/") # and any variation thereof
Error in strsplit(apoe[1, 1], "/") : non-character
2008 Jul 06
2
How to Auto Add forward slash "/" when accessing a link/url through ProxyPass
Hi Friends,
I am using Centos 5.2 and using ProxyPass to access applications
running on other servers. Everything is working fine except for one of
the applications I need to auto add forward slash when any user tries
to access that application. For ex
ProxyPass /testdiary http://testdiary.example.com/
ProxyPassReverse /testdiary http://testdiary.example.com/
If somebody
2017 Dec 02
2
mmap() Error, Invalid Argument - Double slash in path?
I get a ton of these mmap() errors in the log. I noticed there's a
double slash before Maildir. Is this normal? Config error? Dovecot bug?
dovecot: imap(email at email.net): Error: mmap() failed with file
/shares/email/vmail/vmail1/email.net/e/m/a/email-2017.02.25.08.09.39//Maildir/dovecot.index.cache:
Invalid argument
I'm running dovecot version 2.2.22
Thanks
Eric
2006 May 17
1
changing single to double backslash
Hi, all. I didn't find something like this in the faq
list:
I wound like build a function to substitute single
backslashes in a string to double:
ChangeSlash<-function(dir) ...
so
ChangeSlash("C:\mydocs\test")
returns
"C:\\mydocs\\test"
Thanks,
C.
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espa?o, alertas
2010 Jan 29
2
How to use escape characters in a string
Hi,
I want to use a character as below in R,
as.character("`X^`R\`S")
[1] "`X^`R`S"
Warning messages:
1: '\`' is an unrecognized escape in a character string
2: unrecognized escape removed from "`X^`R\`S"
But I found errors.
Can I use some option in as.character() to change this?
Thanks
Mary
[[alternative HTML version deleted]]
2012 Mar 07
1
gsub: replacing double backslashes with single backslash
Hello everybody,
this might be a trivial question, but I have been unable to find this using
Google. I am trying to replace double backslashes with single backslashes using
gsub. There seems to be some unexpected behaviour with regards to the
replacement string "\\". The following example uses the string C:\\ which should
be converted to C:\ .
> gsub("\\\\",
2006 Jan 04
7
Replacing backslashes with slashes
Hello,
I've seen this question asked in the archives but no clear reply or solution
provided. So, just to be sure it is not possible in R: Can I replace
backslashes with slashes in a string ?
I am writing a GUI for R with the Rpad library. I have a "browse" button for
data loading and Windows return a path string with backslashes. I need to
convert them into slashes to use the
2012 Jan 08
2
disable interpretation of trailing slash
Hello,
This is a feature request for a command-line option to disable special
interpretation of trailing slashes on source directories. I have been
using rsync for a couple of years now (what an awesome program!) and the
meaning of the trailing slash on a source is always the one aspect of
its syntax that slows me down and makes me check and re-check the manual
to ensure that I have remembered
2001 Oct 04
1
Strange behavior with saved character vectors containing a slash
I am seeing some strange behavior using save on a character vector containing a
slash. If this is a bug, I will happily submit it (as a single entry! ;-) ) to
r-bugs. Here is an example involving "VIA\B".
> version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
2007 Jan 11
2
Wishlist: Sweave: allow line breaks after forward slashes (PR#9443)
Full_Name: Arne Henningsen
Version: 2.4.0
OS: Linux
Submission from: (NULL) (134.245.140.242)
Sweave does not allow line breaks after forward slashes ("/"). This might lead
to a long "substring" of a command that cannot be wrapped. Hence, Sweave either
keeps this long "substring" in the current line and produces a too long line or
it moves the entire
2011 Nov 04
3
replace double backslash with singel backslash
I want to replace \\ with \ in:
str <-
"C:\\DOKUME~1\\u0327336\\LOKALE~1\\Temp\\RtmpQ5NJ8X\\TIRIS_PICS\\1_Img.jpg"
and tried:
gsub("\\\\", "\\", str)
but this removes the \\ without replacing them by \
Any help much appreciated,
Kay
-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------
2007 Nov 28
1
IMAP --> Creating Folders --> trailing slash
Hello List,
i use Dovecot 1.0.7 for pop and imap on Suse Linux 10.1. I need a little
help in understanding something.
If i want to create a folder with outlook express or thunderbird which can
also create subfolders, then i have to create these folders with a trailing
slash.
folders created with trailing slash are in filesystem created als real
folders, "normal" folders are
2010 Jun 19
1
linux/syslinux.c: Double slash question
Ever since commit b297348081ec40baed33e49fe5f46b54c0d7b164
(http://git.kernel.org/?p=boot/syslinux/syslinux.git;a=commitdiff;h=b297348081ec40baed33e49fe5f46b54c0d7b164),
the statements that build the path for ldlinux.sys have contained '//'
instead of '/' as a path separator. Although it seems strange, it
shouldn't have any effect on functionality.
Is this in there because
2024 Apr 18
2
Import multiple tif raster
Dear community
Dear Ivan
Thanks a lot. The code works now. Solution: direct and full path to the .tif files.
I confused back and forward slash
#first import all files in a single folder as a list
rastlist <- list.files(path = "C:/Users/Sibylle St?ckli/Desktop/NCCS_Impacts_Lot2_2022/InVEST/Species_Input/valpar_bee_presence", pattern='.tif$', all.files= T, full.names= T)
At
2002 Nov 27
1
Trailing Slash Inconsistencies
Hello,
I am noticing inconsistencies when using a trailing slash on the source
directories in conjunction with the '--delete' option. In one instance
when using a trailing slash files get deleted from subdirectories in the
destination tree. In the other instance they don't. I am using rsync
2.5.5. The following are the scenarios:
Scenario 1
----------
*nix(src) ---> *nix(dest)
2001 Nov 01
3
Lost backslashes in parse()
I'm comparing R-1.3.0 on Solaris 2.6 to R-1.3.1 on WindowsNT. The following
5-line script returns TRUE on Unix but FALSE on NT:
fnam <- tempfile()
file.create(fnam)
txt <- paste("file.exists(\"", fnam, "\")", sep="")
expr <- parse(text=txt)
eval(expr)
The issue seems to be that backslashes get lost in the parsing. A workaround
is to change