[Rd] Dialect for shell scripts
Dear all, During a recent package submission, we were highlighted that some lines in our configure script didn't follow the correct syntax. The lines looked like this: x=$(($y/10)) We were indicated at the time that this is because the statement does not use Bourne shell syntax, which is absolutely true, and also that the manual warns about this, which is true again. So far everything is clear. However, what confuses me is that even when the manual says that "you can include an executable (Bourne) shell script configure in your package" [1], the associated footnote says something slightly different: "The script should only assume a POSIX-compliant /bin/sh" [2]. The footnote goes even further, and links to the POSIX specification of the Shell Command Language [3] (as published by The Open Group), which explicitly includes arithmetic expressions like the one above in its syntax [4]. My question then is: what exact dialect should be considered? Given that the statement above does not work in the Bourne shell, I conclude that the Bourne shell is not POSIX-compliant. That in turn would make the manual ambiguous as to the precise dialect that should be used by our configure scripts, and either the shells used by R should be changed to be POSIX-compliants, or the manual edited to be more precise regarding . Many thanks. Rodrigo [1] https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Configure-and-cleanup [2] https://cran.r-project.org/doc/manuals/r-release/R-exts.html#FOOT25 [3] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html [4] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Collaborative Wiki for fostering Open Innovation in R
Dear R Developers, I am writing in order to open a constructive debate whether if it is worth it that R Project adopts the Apache Software Foundation & Wikipedia Model for Open Documentation by using a Collaborative Wiki & Document Store (As a complement to Bugzilla and Mailing Lists), for fostering collaboration in R Development. The objective would be to promote innovation and collaboration between: • R Contributors. • R Core. • And R Community. For: • R Development. • R Contributed Documentation. • R Internals Wiki. The Wikis Section could be structured in different Sub-Wikis (or Pages) with different levels of permissions: • Some only editable by R Core. • Others only editable by R Core, and R Contributors. • And others editable by any member of R Community. And have different Categories, such as: • R Learning Resources. • R Cheatsheets. • R Development & Key Internals. • R Contributed Documentation. • R Help. • etc. A key point would be that the wikis are installed, hosted and accesible through CRAN Servers, as a way to give some collaborative GUI to CRAN hosted documentation. Three collaborative wikis worth to consider would be: • xwiki SAS (Open Source): http://www.xwiki.org • Atlassian Confluence (Free for Open Source Projects): https://www.atlassian.com/software/confluence • MediaWiki: www.mediawiki.org I personally prefer xwiki for being 100% Open Source, and being editable with a Markdown Syntax; but we use Confluence at work and I am also very happy with it; and MediaWiki is the one Wikipedia uses, but seems difficult to use. Thank you & best, Juan [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Region subtag in package 'Language' field
I am looking for the appropriate field to let package authors to declare the pkg documentation language for spell checkers. The most important case is to specify a preference between "en-US" or "en-GB" which can be used by the hunspell or spelling pkg to select the appropriate dictionary. WRE defines the "Language" field for documentation language, but from the current description it seems restricted to 2 or 3 letter ISO-639 codes such as "en" or "eng". WRE also mentions rfc-5646, which refers to ISO 3166-1 for region/country subtags but it is unclear if these are allowed in the field? Spell checking libraries (e.g. myspell/hunspell) typically use locale-like language names to identify the appropriate dictionary such as "en_GB" or "de_AT", see for example [1,2]. Merely specifying "en" or "de" is ambiguous to the spell checker. I was wondering if the WRE definition of the "Language" field could allow for this? [1] https://apps.fedoraproject.org/packages/hunspell-en/contents/ [2] https://packages.debian.org/stretch/hunspell-en-gb __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Issue related to Rlapack
Hi, I am having an issue regarding R3.4.3. I am launching R instance from RDotNet using following two statements: REngine.SetEnvironmentVariables(rPath, rHome); this._RServer = REngine.GetInstance(); Where rPath = "C:\Program Files\R\R-3.4.3\bin\x64" rHome = "C:\Program Files\R\R-3.4.3" As soon as the second statement (REngine.GetInstance() ) executes I get following error: " *The Program can't start because Rplpack.dll is missing from your computer. Try reinstalling the program to fix this problem.*" I checked, Rplpack.dll is in my rPath location. I did not get this error in the older versions of R. Only R3.4.3 is having this issue. Please help. -- Thanks and regards, Anil [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel