search for: filepath

Displaying 20 results from an estimated 340 matches for "filepath".

2013 Nov 23
0
Re: [R-SIG-Mac] morley object?
Hi Ann Looks like a typo - I see "moreley.tab" that should be "morley.tab". Works for me after correcting that. > filepath <- system.file("data", "moreley.tab", package="datasets") > filepath [1] "" > > filepath <- system.file("data", "morley.tab", package="datasets") > filepath [1] "C:/PROGRA~1/R/R-30~1.1/library/datasets/dat...
2007 Jun 29
1
R CMD build with mingw and msys (PR#9766)
Full_Name: Steffen Version: 2-5-0 OS: Windows Submission from: (NULL) (192.124.243.162) Hi, the R CMD build script is using if($WINDOWS) { ## workaround for paths in Cygwin tar $filepath =~ s+^([A-Za-z]):+/cygdrive/\1+; } which does not work if the build environment is a MINGW. I have added the patch below, Yours, Steffen $ diff -u build build.orig --- build Fri Jun 29 13:50:16 2007 +++ build.orig Fri Jun 29 08:51:48 2007 @@ -47,7 +47,6 @@ R::Vars::error("R_HO...
2004 Apr 27
1
'R CMD build' fails when there are spaces in the path (PR#6830)
Full_Name: Byron Ellis Version: R 1.9.0 (and 2.0.0) OS: Linux (Redhat Fedora Core) Submission from: (NULL) (140.247.241.197) It appears that `R CMD build` cannot handle spaces in the path when building packages for distribution. For instance: [ellis@net-78815 ~/Bayesian Networks]$ R CMD build bnsl * checking for file 'bnsl/DESCRIPTION' ... OK * preparing 'bnsl': * cleaning src *
2023 Dec 30
2
Help request: Parsing docx files for key words and appending to a spreadsheet
...x one problem (the lack of a separator), but introduces a new one when I complete the function Calum proposed:Error in docx_summary() : argument "x" is missing, with no default The whole code so far looks like this: # Load libraries library(tcltk) library(tidyverse) library(officer) filepath <- setwd(tk_choose.dir()) filename <- "Now they want us to charge our electric cars from litter bins.docx" #full_filename <- paste0(filepath, filename) # Calum's original suggestion full_filename <- paste(filepath, filename, sep="/") # Eric's proposed fix...
2023 Dec 30
3
Help request: Parsing docx files for key words and appending to a spreadsheet
An update: Running this block of code: # Load libraries library(tcltk) library(tidyverse) library(officer) filepath <- setwd(tk_choose.dir()) filename <- "Now they want us to charge our electric cars from litter bins.docx" #full_filename <- paste0(filepath, filename) full_filename <- paste(filepath, filename, sep="/") if (!file.exists(full_filename)) { ? message("File mi...
2020 Oct 29
2
Something is wrong with the unserialize function
Hi all, I am not able to export an ALTREP object when `gctorture` is on in the worker. The package simplemmap can be used to reproduce the problem. See the example below ``` ## Create a temporary file filePath <- tempfile() con <- file(filePath, "wrb") writeBin(rep(0.0,10),con) close(con) library(simplemmap) library(parallel) cl <- makeCluster(1) x <- mmap(filePath, "double") ## Turn gctorture on clusterEvalQ(cl, gctorture()) clusterExport(cl, "x") ## x is an 0-...
2020 Oct 29
2
[External] Something is wrong with the unserialize function
...at uiowa.edu" <r-devel-bounces at r-project.org on behalf of luke-tierney at uiowa.edu> wrote: Thanks for the report. Will look into it when I get a chance unless someone else gets there first. A simpler reprex: ## create and serialize a memmory-mapped file object filePath <- "x.dat" con <- file(filePath, "wrb") writeBin(rep(0.0,10),con) close(con) library(simplemmap) x <- mmap(filePath, "double") saveRDS(x, file = "x.Rds") ## in a separate R process: gctorture() readRDS("x.Rd...
2005 Oct 29
1
dyn.load() error: bad external relocation length
R-helpers, Is there an easy way to call an external (C) program using .C or .Call without including the code in a package. I know how to do it using system(), but that doesn't seem to be a permanent or portable solution. Initially I tried: .Call('filepath.to.c.function', arg1) and got this error: Error in .Call("filepath.to.c.function", "arg1", : "C" function name not in load table So read the section on foreign language interfaces in the Writing R Extensions manual but when I tried: dyn.load('filepath.t...
2012 Oct 05
2
Using variables from different environments in one function
...################ #And we have a main script with a number of predefined variables. #This shapes an environment in which variables that will be used #by the inner function are defined. ############# MAIN SCRIPT ################ a=1 b=2 c=3 d=4 #source(filepath/to/innerfunction1) outcome1<-innerfunction1() AB <-outcome1$ab CD <-outcome1$cd #source(filepath/to/innerfunction2) innerfunction2() ################################################# #So far so good. No problem if you run this. #The...
2006 Jul 30
2
NIST StRD linear regression
...ultPath <- "my path" data.base <- "http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA" reg.data <- paste(data.base, "/Filip.dat", sep="") model <- "V1~V2+I(V2^2)+I(V2^3)+I(V2^4)+I(V2^5)+I(V2^6)+I(V2^7)+I(V2^8)+I(V2^9)+I (V2^10)" filePath <- paste(defaultPath, "//NISTtest.dat", sep="") download.file(reg.data, filePath, quiet=TRUE) A <- read.table(filePath, skip=60, strip.white=TRUE) lm.data <- lm(formula(model), A) lm.data Rob Carnell
2010 May 21
2
Problem creating shortcut
Hi everyone! I'm a recent linux user starting my first steps with this powerfull OS, and so far I've been able to make my way through installing and configuring a basic box connected to a M$ network. Now I'm trying to create a shortcut to run my windows database application in wine but so far I had no success... To correctly start my application in M$ windows I need to create a
2015 Feb 25
2
smb.conf filepaths
Can all of the compiled-in filepaths below be overrdden in smb.conf? I can't find documentation for the required smb.conf equivilents. If someone could supply them or post a link, I'd be very greatful. SBINDIR BINDIR SWATDIR CONFIGFILE LOGFILEBASE LMHOSTSFILE LIBDIR LOCKDIR PIDDIR SMB_PASSWD_FILE PRIVATE_DIR
2010 Sep 23
1
Junk appended to filepath, impossible to read from filesystm
...s crossposted to Gentoo forums (http://forums.gentoo.org/viewtopic-t-845865.html) Hello, Yesterday I updated Wine from 1.3.2 to 1.3.3 and today when I wanted to use a program through Wine (a text editor, but it doesn't really matter) I received an error that some files could not be found. The filepath given in the error message was wrong, instead of reading something like /home/user/.wine/foo/bar it was /home/user/.wine/foo/bar (this is not the actual path as I couldn't select the error message.) Using the file selector, I could find that filenames contained some junk at the end. After furth...
2018 Jun 29
1
Bug in tools::md5sum - does not work when filepath contains tilde (ie home directory)
I've reproduced on ubuntu and winodws with R3.4.3 When the filepath contains a tilde, the result is NA. But if the file path is expanded then the function works. Example: tools::md5sum("~/.Rprofile") returns NA tools::md5sum(normalizePath("~/.Rprofile")) returns the proper md5 Perhaps this is expected behaviour because the documentation does...
2015 Feb 05
3
Rcurl crash in R-devel
...-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.2 (Yosemite) locale: [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] RCurl_1.95-4.5 bitops_1.0-6 > filepath <- "/Users/marc/Documents/Espace_de_travail_R/package_embryogrowth/embryogrowth/DESCRIPTION" > urlx <- "ftp://xxxxx:xxxxxxx at max2.ese.u-psud.fr/conservation/embryogrowth/DESCRIPTION" > ftpUpload(what=filepath, to=urlx) *** caught segfault *** address 0x0, c...
2012 Sep 26
3
Reading multiple files
...e. All are of the type: Dados1.raw, Dados2.raw and so on. If the files have the same number of columns, I can read with the following commands: rm(list=ls()) filenames = list.files(path="~/Silvano/Arq", pattern="Dados+.*raw") names = substr(filenames, 1, 7) for(i in names){ filepath = file.path("~/Silvano/Dados", paste(i, ".raw", sep="")) assign(i, read.delim(filepath, colClasses=c(rep("character", 5), rep("numeric", 5)), sep = "")) } It happens that the files have diff...
2020 Oct 29
0
[External] Something is wrong with the unserialize function
Thanks for the report. Will look into it when I get a chance unless someone else gets there first. A simpler reprex: ## create and serialize a memmory-mapped file object filePath <- "x.dat" con <- file(filePath, "wrb") writeBin(rep(0.0,10),con) close(con) library(simplemmap) x <- mmap(filePath, "double") saveRDS(x, file = "x.Rds") ## in a separate R process: gctorture() readRDS("x.Rds") Looks like a missing PROTE...
2007 Oct 02
0
patch: allow R CMD build exclude patterns to match symlinks
...d.in (working copy) @@ -171,6 +171,24 @@ $log->message("removing junk files"); find(\&unlink_junk_files, $pkgdir); + chdir(dirname($pkgdir)); + my $filename = "${intname}_" . $description->{"Version"} . ".tar"; + my $filepath = &file_path($startdir, $filename); + R_system(join(" ", + ("$tar chf", + &shell_quote_file_path($filepath), + "$pkgname"))); + my $tmpdir = R_tempfile("Rbuild"); + rmtree($tmpdir) if(-d $tmpd...
2012 Jul 05
2
i need help in documentation
Hi, i am new in R development , so i need help in documentation from comments in R file for example sample<-function(filepath) { ##title<< read csv file ##author<< Purushoth ##description this function is used to read a csv file output<-read.csv(filepath) return(output) } i need to get html document file using this comments Thanks B.Purushothaman -- View this message in context: http://r.789...
2023 Dec 30
1
Help request: Parsing docx files for key words and appending to a spreadsheet
full_filename <- paste(filepath, filename,sep="/") On Sat, Dec 30, 2023 at 1:45?PM Andy <phaedrusv at gmail.com> wrote: > Thanks Ivan and Calum > > I continue to appreciate your support. > > Calum, I entered the code snippet you provided, and it returns 'file > missing'. Looking at this...