Rd documentation is latex like, so comments can be included with a percent symbol. You should write \% if you intend to write a literal percent symbol.
On Wed, Jan 18, 2023, 23:00 mai zhou <maiz...@gmail.com> wrote: > Hi, > > In the process of adding examples to the .RD file, I noticed > Rcmd check seems to skip certain example code. > > I put my example code x%*%y%*%z (matrix multiplication) in the > RD file. After running Rcmd check > (on windows) and look into the xxx.Rcheck directory, > xxx-EX.ROUT file, it seems that the example check stopped > at x (i.e. everything after % sign is ignored, like LaTeX). > > That seems like a bug. Can anyone confirm on newer version? > > Mine: > > > sessionInfo() > R version 4.1.2 (2021-11-01) > Platform: x86_64-w64-mingw32/x64 (64-bit) > Running under: Windows 10 x64 (build 22621) > > Matrix products: default > > locale: > [1] LC_COLLATE=English_United States.1252 > [2] LC_CTYPE=English_United States.1252 > [3] LC_MONETARY=English_United States.1252 > [4] LC_NUMERIC=C > [5] LC_TIME=English_United States.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] compiler_4.1.2 emplikAUC_0.3 rootSolve_1.8.2.3 emplik2_1.32 > > > > > Mm... I have Win11, why the sessionInfo() say W10 ? (but that is something > else) > > best, > > Mai Zhou > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel