Displaying 7 results from an estimated 7 matches for "doc_obj".
Did you mean:
db_obj
2023 Dec 29
1
Help request: Parsing docx files for key words and appending to a spreadsheet
...oercion to 'logical(1)'
No idea how to debug that.
Even when trying Calum's suggestion with officer:
content <- officer::docx_summary("Now they want us to charge our
electric cars from litter bins.docx") # A title of one of the articles
The error returned is:Error in x$doc_obj : $ operator is invalid for
atomic vectors
##################
(2) Second 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(), &quo...
2023 Dec 30
3
Help request: Parsing docx files for key words and appending to a spreadsheet
...()
? # this reads docx for the full filename and
? # passes it ( |> command) to the next line
? # which summarises it.
? # the result is saved in a data frame object
? # called content which we shall show some
? # heading into from
? head(content)
}
Results in this error now:Error in x$doc_obj : $ operator is invalid for
atomic vectors
Thank you.
On 30/12/2023 12:12, Andy wrote:
> Hi Eric
>
> Thanks for that. That seems to fix one problem (the lack of a
> separator), but introduces a new one when I complete the function
> Calum proposed:Error in docx_summary() : arg...
2023 Dec 29
1
Help request: Parsing docx files for key words and appending to a spreadsheet
...imports one docx file. In
order to read multiple files, use a for loop or the lapply function.
> content <- officer::docx_summary("Now they want us to charge our
> electric cars from litter bins.docx") # A title of one of the articles
>
> The error returned is:Error in x$doc_obj : $ operator is invalid for
> atomic vectors
A similar problem here. help(docx_summary) says that the function
accepts "rdocx" objects returned by read_docx, not file paths. A string
in R is indeed an atomic vector of type character, length 1.
docx_summary(read_docx("Now they w...
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
2023 Dec 30
2
Help request: Parsing docx files for key words and appending to a spreadsheet
Hi Eric
Thanks for that. That seems to fix 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 <-
2010 Jun 11
0
Wine release 1.2-rc3
...w: Add Italian translation.
shdoclc: Fix Italian translation.
shdoclc: Fix again Italian translation.
Maarten Lankhorst (1):
dsound: Unofficially support 5.1 sound.
Marcus Meissner (4):
shlwapi: Handle NULL ptr return from allocation (Coverity).
mshtml: Add check for doc_obj being NULL (Coverity).
dbghelp: Add 2 new darf defines and implement DW_OP_stack_value.
wininet: Fixed buffer lengths in InternetCrackUrlW tests.
Mariusz Pluci?ski (5):
gameux: Add initial header for gameux.dll.
gameux: Add declaration of IGameExplorer interface.
game...
2019 Mar 15
0
Wine release 4.4
...ate_fragment.
mshtml: Access document object via browser object in super_navigate.
mshtml: Access document object via browser object in navigate_new_window.
mshtml: Access document object via browser object in navigate_uri.
mshtml: Get rid of no longer needed HTMLOuterWindow doc_obj pointer.
jscript: Add Array.prototype.map implementation.
Jactry Zeng (20):
riched20: Handle REO_IOB_SELECTION in IRichEditOle::GetObject().
propsys: Add VT_EMPTY support for PropVariantToStringAlloc().
propsys: Implement PropVariantToString().
propsys: Add VT_CLSID s...