search for: tk_choose

Displaying 20 results from an estimated 21 matches for "tk_choose".

2009 Oct 27
1
tk_choose.files without multiple selection?
Dear all, I compared tk_choose.files on linux with choose.files or tk_choose.files on windows and found that tk_choose.files does not allow multiple selection on linux - independent on keyword setting "multi". > tk_choose.files(default=paste(path.original,"",sep=""),caption="Select file(s)...
2017 Oct 20
0
Permission denied with tk_choose.dir
Dear R Help list, I'm facing a problem with "tk_choose.dir", I try to find an explanation and a solution. I use :rm(list=ls(all=TRUE)) datawd<-"/mnt/3-Biot/data_input/" setwd(datawd) files<-tk_choose.files(filters = matrix(c("/*.csv",".csv"),1, 2, byrow = TRUE),caption ="Select file with csv format")...
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 missing") } else {...
2023 Dec 30
2
Help request: Parsing docx files for key words and appending to a spreadsheet
...ck 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 #lets double check th...
2023 Dec 29
1
Help request: Parsing docx files for key words and appending to a spreadsheet
...wait days!! :-) I'm on a Linux (Mint) machine. Below, I document three attempts, two using officer and the last now using textreadr My attempts so far using 'officer': ################## (1) First Attempt: # Load libraries library(tcltk) library(tidyverse) library(officer) setwd(tk_choose.dir()) doc_path <- list.files(getwd(), pattern = ".docx", full.names = TRUE) files <- list.files(getwd(), ".docx") files length(files) ## This works to here - obtain a list of docx files in directory 'TEST with 9 files'. However, the next line doc_in <- read...
2010 Jan 27
2
Rcmdr has stopped working
On my Mac (Snow Leopard and R64), I had been using Rcmdr nicely. But now when I do > library(Rcmdr) the tk libraries load, but the Rcmdr window never appears. > library(Rcmdr) Loading required package: tcltk Loading Tcl/Tk interface ... > And if I try to do anything else, R goes to 100% cpu and hangs. How do I recover? Thanks, Jim Rome
2010 Sep 08
2
choose.dir() gone?
Hi, I fail to find "choose.dir()" in my current R install (see below)? Didn't that exist at some point? How to achieve "file.choose()" equivalent functionality for directories? Thanks for any hints, Joh > sessionInfo() R version 2.11.1 (2010-05-31) x86_64-pc-linux-gnu locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3]
2012 Jan 04
1
tcltk on linux/rhel6
Dear All, I've seen posts to the effect that.. 1) choose.dir is only available for windows, and 2) tk_choose.dir would be the linux equivalent. I'm still having trouble with the subject package on linux/rhel6. I've specified --with-tcltk during ./configure, and I still get the response... > install.packages("tcltk") Installing package(s) into ?/home/cbaribault/R/x86_64-unknown-linu...
2012 Nov 28
2
choose folder interactively
Dear users, I am looking for a function to choose a folder interactively, just like file.choose() but for a folder. I have found tcltk::tk_choose.dir() but R hangs when I try to do anything and I have to force exit. I've tried to reinstall tcltk with install.packages(), but "package ?tcltk? is not available (for R version 2.15.2)" even though it's already installed on my computer (it comes with 'base', doesn'...
2012 Nov 28
2
choose folder interactively
Dear users, I am looking for a function to choose a folder interactively, just like file.choose() but for a folder. I have found tcltk::tk_choose.dir() but R hangs when I try to do anything and I have to force exit. I've tried to reinstall tcltk with install.packages(), but "package ?tcltk? is not available (for R version 2.15.2)" even though it's already installed on my computer (it comes with 'base', doesn'...
2009 May 26
1
interactive file choosing in Linux?
I am used to using the [R] function choose.files() for interactive file selection in MS-Windows. What is the comparable function in Linux? I expected the function file.choose() to display similar behavior, i.e., a graphical interface diplaying a file listing, but all I seem to get is a "text input prompt". This does not seem correct. > file.choose() Enter file
2009 Apr 22
1
Installation fails (PR#13669)
...Mode text html latex example tcltk-defunct text html latex tcltk-package text html latex tkProgressBar text html latex example tkStartGUI text html latex tk_choose.dir text html latex example tk_choose.files text html latex example tk_messageBox text html latex tk_select.list text html latex tkpager text html latex m...
2009 May 21
0
problems building R-2.9.0 on solaris
...text html latex example tcltk-defunct text html latex tcltk-package text html latex tkProgressBar text html latex example tkStartGUI text html latex tk_choose.dir text html latex example tk_choose.files text html latex example tk_messageBox text html latex tk_select.list text html latex tkpager text html lat...
2023 Dec 29
2
Help request: Parsing docx files for key words and appending to a spreadsheet
Hi Andy: I don?t have an answer but I do have what I hope is some friendly advice. Generally the more information you can provide, the more likely you will get help that is useful. In your case you say that you tried several packages and they didn?t do what you wanted. Providing that code, as well as why they didn?t do what you wanted (be specific) would greatly facilitate things. Happy
2012 Nov 29
0
Fwd: Re: choose folder interactively
...University, Belgium ( ( ( ( ( .............................................................. On 28/11/12 13:39, Ivan Calandra wrote: > Dear users, > > I am looking for a function to choose a folder interactively, just like > file.choose() but for a folder. > > I have found tcltk::tk_choose.dir() but R hangs when I try to do > anything and I have to force exit. > I've tried to reinstall tcltk with install.packages(), but "package > ?tcltk? is not available (for R version 2.15.2)" even though it's > already installed on my computer (it comes with 'base...
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, while the object 'full_filename' exists, what > is
2009 Aug 24
0
R 2.9.2 is released
...ports on more cases where the asymptotic expansions lose accuracy (the underlying TOMS708 C code was ignoring some of these, including the PR#13786 example). o new.env(hash = TRUE, size = NA) now works the way it has been documented to for a long time. o tcltk::tk_choose.files(multi = TRUE) produces better-formatted output with filenames containing spaces. (PR#13875) o R CMD check --use-valgrind did not run valgrind on the package tests. o The tclvalue() and the print() and as.xxx methods for class "tclObj" crashed R with an...
2009 Aug 24
0
R 2.9.2 is released
...ports on more cases where the asymptotic expansions lose accuracy (the underlying TOMS708 C code was ignoring some of these, including the PR#13786 example). o new.env(hash = TRUE, size = NA) now works the way it has been documented to for a long time. o tcltk::tk_choose.files(multi = TRUE) produces better-formatted output with filenames containing spaces. (PR#13875) o R CMD check --use-valgrind did not run valgrind on the package tests. o The tclvalue() and the print() and as.xxx methods for class "tclObj" crashed R with an...
2024 Jan 06
0
Help request: Parsing docx files for key words and appending to a spreadsheet
...library(tidyverse) >> #library(officer) >> #library(stringr) #for splitting and trimming raw data >> #library(tidyr) #for converting to wide format >> >> # I'd like to keep this as it enables more control over the selected directories >> filepath <- setwd(tk_choose.dir()) >> >> # The following correctly lists the names of all 9 files in my test directory files >> <- list.files(filepath, ".docx") files >> length(files) >> >> # Ideally, I'd like to skip this step by being able to automatically read in the &gt...
2009 Apr 17
0
R 2.9.0 is released
...s. o Package 'tools' contains dependsOnPkgs() to compute reverse dependencies. o Strict type checking is now turned on: this catches more internal corruptions, and some badly written contributed code. o There are new functions in package 'tcltk', tk_choose.files(), tk_choose.dir() and tk_messageBox(), analogues of functions available on Windows (the last is an analogue of winDialog). o Sys.glob() now does tilde expansion on all platforms. o read.table() and friends gain a 'fileEncoding' argument to make r...