This function provides private utility functions used by other nntpr functions
adjust_article_range - returns a vector with original first and last article numbers or adjusted value(s) if a requested number falls outside of the group's actual range
call2python - invoke reticulate functions to run python commands with exception handling
count_lines - returns the number of lines in the supplied text file (with path)
delete_temptext - cleans up temporary text file after posting
execute_listhdr_call - executes validated nntplib xhdr or xover call with appropriate passed parameters
getartinfo - return list with first and last article information stored by listartheader and listheaderfield
getclocktime - return a string with the rounded elapsed time from getexectime
getexectime - return last stored execution time info (proc.time) from group list, xover, and xhdr calls
getgroupinfo - return Group information vector (response, count, first, last, name) stored by group
getretmessage - global retmessage retrieval
is.wholenumber - tests a variable to see if it is numeric and is an integer
propsamplesize - calculates proportional sample size for systematic sampling of newsgroup article information
samplegroup - creates a sample set data frame of article numbers, postdates, counts for group volume plotting across group dates
sampleheaderfield - called from inside list apply loop, calls header retrieval with error handling and retry logic
samplesubject - creates a sample set data frame of article subjects for a set of article numbers for processing to produce a term frequency wordcloud
set_from_header - returns From header line constructed from stored name, email name, email domain values
set_messageid_header - returns Message-ID header line constructed from supplied message_id and stored email domain
set_temptext_filename - returns temporary text file using message_id UUID
subjects2wordcloud - takes the subject fields in the groupdatevolume sample and produces a wordcloud on term freq
validate_header_field - returns an error message if an invalid header field name is requested
validate_list_call - returns an error message if a list function is called without a group set or with first > last article numbers
write_temptext - writes fully constructed text message vector to temporary file for posting
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.