search for: owd

Displaying 13 results from an estimated 13 matches for "owd".

Did you mean: old
2005 May 16
2
a problem sourcing a file using chdir=TRUE
...> class(file) [1] "file" "connection" when the connection is open by file <- file(file, "r", encoding = encoding) But this force the following if statement if (chdir && is.character(file) && (path <- dirname(file)) != ".") { owd <- getwd() on.exit(setwd(owd)) setwd(path) } to be FALSE and then non changing of current directory is done. Is this the desired behavior or some bug fix is required? Luca +-----------------------------------------------------------------------+ | Dr. Luca Scrucca...
2005 Jul 19
1
Minor "bug" in source()
...if (Ne == 0) return(invisible()) if (chdir && is.character(ofile)) { <=== HERE isURL <- length(grep("^(ftp|http|file)://", ofile)) > 0 if (!isURL && (path <- dirname(ofile)) != ".") { owd <- getwd() on.exit(setwd(owd), add = TRUE) setwd(path) } } <snip></snip> I suggest to either i) do 'ofile <- file' before the first if-clause above, or better ii) move the last if-clause inside the first one (and remove " &am...
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?
Hi Tomas, I received a report about R 4.0.0 in the knitr package (https://github.com/yihui/knitr/issues/1840), and I think it is related to the issue here. I created a minimal reproducible example below: owd = setwd(tempdir()) z = 'K\u00e4sch.txt' file.create(z) list.files() file.exists(list.files()) setwd(owd) Output: > owd = setwd(tempdir()) > z = 'K\u00e4sch.txt' > file.create(z) [1] TRUE > list.files() [1] "K?sch.txt" > file.exists(list.files()) [1] FALSE...
2019 Feb 14
1
Proposed function file.backup
...##' @author Shadi Pirhosseinloo <shadi@@ku.edu> Paul Johnson <pauljohn@@ ku.edu> ##' @return The name of the newly created file. ##' @importFrom tools file_ext ##' @importFrom tools file_path_sans_ext ##' @export ##' @examples ##' tdir <- tempdir() ##' owd <- getwd() ##' ##' setwd(tdir) ##' system("touch test.1.txt") ##' system("touch test.2.txt") ##' system("touch test.3.txt") ##' system("touch test.4.txt") ##' system("touch test.5.txt") ##' ## note: no extension ne...
2007 Dec 07
0
regression tests for unlink and wildcards fail - Solaris 10 SPARC / Sun Studio 12 (PR#10501)
...e Sun Studio 12 compilers on Sun Solaris 10 (SPARC). All tests using "make check" pass with a status of OK. However, the following section of "reg-tests-1.R" fails when I attempt to test after a build of either 2.6.0 or 2.6.1: ## regression tests for unlink and wildcards owd <- setwd(tempdir()) f <- c("ftest1", "ftest2", "ftestmore", "ftest&more") file.create(f) stopifnot(file.exists(f)) unlink("ftest?") stopifnot(file.exists(f) == c(FALSE, FALSE, TRUE, TRUE)) unlink("ftest*", recursive =...
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?
...html Best Tomas On 6/22/20 6:11 AM, Yihui Xie wrote: > Hi Tomas, > > I received a report about R 4.0.0 in the knitr package > (https://github.com/yihui/knitr/issues/1840), and I think it is > related to the issue here. I created a minimal reproducible example > below: > > owd = setwd(tempdir()) > z = 'K\u00e4sch.txt' > file.create(z) > list.files() > file.exists(list.files()) > setwd(owd) > > Output: > >> owd = setwd(tempdir()) >> z = 'K\u00e4sch.txt' >> file.create(z) > [1] TRUE >> list.files() > [1]...
2005 Jun 15
1
source() chdir does not work (PR#7940)
...{ +filename <- file ...blablabla -if (chdir && is.character (file) && ... dirname(file) ...) { +if (chdir && is.character (filename) && ... dirname(filename) ...) { +close(file) # since we can have only one on.exit(), we close file here ...blablabla on.exit(setwd(owd)); }
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?
...ihui Xie wrote: > > Hi Tomas, > > > > I received a report about R 4.0.0 in the knitr package > > (https://github.com/yihui/knitr/issues/1840), and I think it is > > related to the issue here. I created a minimal reproducible example > > below: > > > > owd = setwd(tempdir()) > > z = 'K\u00e4sch.txt' > > file.create(z) > > list.files() > > file.exists(list.files()) > > setwd(owd) > > > > Output: > > > >> owd = setwd(tempdir()) > >> z = 'K\u00e4sch.txt' > >> file...
1997 Sep 21
1
Active X versus Java, Linux versus NT
Having recently read about the lack of security of Active X controls, I was wondering if I could get some specifics about its lack of security versus the security of JAVA. Also about the security of JAVA under Linux. I understand that MS''s concept of security is a) investigate the vendor, b) issue a certificate of authority, 3) vendor is now trused to do anything (fox guarding the hen
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?
Dear R Developers, I am having an issue with the renv package and R 4.0.1, which I suspect is related to base R and not the renv package itself, as with R 3.6.3 such an "error" does not appear. The error is raised by a file.exists() path, and path "C:\Users\J-tel\Documents", which in R 3.6.3 is read correctly, but in R 4.0.1 fails (Probably because of the "-"
2006 Feb 24
18
I need more bling!
Hello everyone, I just showed a friend a prototype of a site offering a service I''m trying to sell (sorry, not on the Internet yet - he saw it at my house). His comment: "Looks like it does everything, but also looks pretty ugly. You''re not going to wow anybody with that". Sitting back and thinking about it, he''s dead right - it needs some bling to make it
2002 Dec 22
0
Bug ID: 26222 - SMB Storm
...create mask = 0770 security mask = 0770 directory mask = 0770 directory security mask = 0770 homes# set _ addsuffix argv () cwd /root dirstack /root echo_style bsd edit filec gid 0 group wheel history 100 home /root killring 30 loginsh mail /var/mail/root owd path (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin /root/bin) prompt homes# prompt2 %R? prompt3 CORRECT>%R (y|n|e|a)? savehist 100 shell /bin/csh shlvl 1 status 0 tcsh 6.12.00 term vt100 tty ttyp0 uid 0 user root versi...
2004 Jun 17
1
Votre question a Amazon.fr
...AVOzL2iBZGQAvV684Mxm5vqXodRkAc60MeBVvytkUEQETa9oMZ8tbc /RiIHkZlIHQJCQgJdcyhWGOB/0i7ShjM0vZGgGUYAE4AtuCMbd/XRCsFJwNe8RfIvfYPzLyL VRT/AsfQ14u//xbkOFx1BEBD6/eSLPbDWvYXHIRHbQ2AeAEijeMYthK3HYvCUDcIDKntNxpY GBgPlMKJBdFH2r9bcNNLsA5DiMYGXEaxjbZrpkOAp0qDP1VxqW2+Coo/dDoPZ3QuMOGyV0ri Bh82NyCcGw9AAxUBQH1tCLuQMrowDw6ItUY03McDgyeOFLr7C03cKKBJoRxjU7stmqO6glAJ VznAtdHYNqh1BNUOC3QVPBDPFiFwKJmFO6IbJ/g7+xfqubzLnBsC/jRfg/iFgU+1WYdDDD8n rGZnb7fSOR5z60BACBh1+QbytI3d0ivGL1hO0fiOQAKpWGJrXQOJyjSB29SSfug763QyMrN0 IxyOwjVwVVC7JCU03TZI3XUODBAnXAmLA1bWRfxsnlzD61PmTKVGpZO5hbF0PGDq7d92iWVA OHv7BPYrx0Bq0lewpFXOWgu6W8FZwVbUDDEQf...