bugGNU Octave - Bugs: bug #63561, [octave forge] (statistics)...

 
 

bug #63561: [octave forge] (statistics) "unusable help text" error in chi2gof on installation

Submitter:  Jim Van Zandt <vanzandtj>
Submitted:  Thu 22 Dec 2022 06:58:34 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  James R Van Zandt Open/Closed:  * Closed
Release:  * 7.3.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Jan 2024 06:46:29 PM UTC, comment #2: 

This issue has been fixed quite a while ago. The admins can close this.

Andreas Bertsatos <pr0m1th3as>
Thu 22 Dec 2022 07:15:24 PM UTC, comment #1: 

What is texinfo version on your computer?
("$ texi2any --version")

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 22 Dec 2022 06:58:34 PM UTC, original submission:  

I have a Mac running macOS Big Sur (Version 11.7.2)

I have:
$ octave
GNU Octave, version 7.3.0
Copyright (C) 1993-2022 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.


Octave was configured for "x86_64-apple-darwin20.6.0".


I installed the statistics package:

octave:2> pkg install -forge statistics
...
octave-help-8AC2XY:141: misplaced {
octave-help-8AC2XY:141: misplaced }
octave-help-8AC2XY:141: misplaced {
octave-help-8AC2XY:141: misplaced }
warning: doc_cache_create: unusable help text found in file 'chi2gof'
warning: called from
    doc_cache_create>handle_function at line 98 column 5
    doc_cache_create>create_cache at line 118 column 36
    gen_doc_cache_in_dir>@<anonymous> at line 150 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 151 column 9
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 612 column 9
...


After installation, asking for help yields the same error message:

octave:8> which chi2gof
'chi2gof' is a function from the file /Users/jrv/.local/share/octave/api-v57/packages/statistics-1.5.2/chi2gof.m
octave:9> help chi2gof
octave-help-DDTlVM:141: misplaced {
octave-help-DDTlVM:141: misplaced }
octave-help-DDTlVM:141: misplaced {
octave-help-DDTlVM:141: misplaced }
warning: help: Texinfo formatting filter exited abnormally; raw Texinfo source of help text follows...
'chi2gof' is a function from the file /Users/jrv/.local/share/octave/api-v57/packages/statistics-1.5.2/chi2gof.m

 -- Function File: H = chi2gof (X)
 -- Function File: [H, P] = chi2gof (X)
 -- Function File: [P, H, STATS] = chi2gof (X)
 -- Function File: [...] = chi2gof (X, NAME1, VALUE1, ...)

     Chi-square goodness-of-fit test.

     ‘chi2gof’ performs a chi-square goodness-of-fit test for discrete
     or continuous distributions.  The test is performed by grouping the
     data into bins, calculating the observed and expected counts for
...

chi2gof is installed here:
~/.local/share/octave/api-v57/packages/statistics-1.5.2/chi2gof.m

My binary search suggests the problem is in these lines:

## @tex $$ \chi ^ 2 = \sum_{i=1}^N \left (O_i - E_i \right) ^ 2 / E_i $$
## @end tex

That is syntactically correct tex.


This substitution will eliminate the error message:

## @tex @math{ \chi ^ 2 = \sum_{i=1}^N \left (O_i - E_i \right) ^ 2 / E_i }
## @end tex

but there may be a better solution. 

I'm using Octave in a terminal window that could not display a typeset equation anyway.  The help text here includes:

     those bins, and computing the chi-square test statistic
     SUM((O-E).^2./E), where O is the observed counts and E is the
     expected counts.  This test statistic has an approximate

Jim Van Zandt <vanzandtj>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by pr0m1th3as (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by vanzandtj (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-25 mmuetzel StatusNone Fixed
        Open/ClosedOpen Closed
    2022-12-23 mmuetzel Carbon-CopyRemoved 102357 -
    2022-12-23 mmuetzel Summary&quot;unusable help text&quot; error in chi2gof on installation [octave forge] (statistics) "unusable help text" error in chi2gof on installation
    2022-12-23 rik5 Carbon-CopyRemoved 72865 -
    2022-12-23 rik5 CategoryNone Octave Package
        Item GroupInstallation Failure Unexpected Error or Warning

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code