Displaying 6 results from an estimated 6 matches for "nicenam".
Did you mean:
nicename
2006 Mar 24
3
String manipulation
I need to make some nicenames from my post titles, like:
- convert spaces to "-"
- delete all the !,?,commas,.,;.:,* from the string
How can I do? Sorry for the noob question...
Oh, and another thing... How can I make permalink this way:
Not .../blog/show/4 but .../category/nicename ?
Thankyou.
--
Posted via h...
2023 May 06
1
Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
The deparse options used by default by 'deparse' and 'dput' are
c("keepNA", "keepInteger", "niceNames", "showAttributes")
but Defn.h still has
#define DEFAULTDEPARSE 1089 /* KEEPINTEGER | KEEPNA | NICE_NAMES, used for
calls */
i.e., with the SHOWATTRIBUTES bit turned off. Is that on purpose?
Note that this leads to weird things like:
> (expr <- call("is....
2018 Mar 30
0
Nice names in deparse
...R devel r73778
gives
structure(c(0), .Names = "recursive")
The 'control' is suggested by an example for output as in R < 3.5.0. However, the output is slightly different from
dput(x)
in R 3.3.2:
structure(0, .Names = "recursive")
Part of NEWS item related with "niceNames" control option:
as.character(list( c (one = 1))) now includes the name, as as.character(list(list(one = 1))) has always done.
Please reconsider.
As
as.numeric(list(c(one = 1)))
gives
1 ,
I expect that
as.character(list(c(one = "1")))
gives
"1" .
It does in R devel r7377...
2018 Apr 23
0
R 3.5.0 is released
...i.e., can be recreated identically from deparsed code.
dput(), deparse() and dump() now print the names() information
only once, using the more readable (tag = value) syntax, notably
for list()s, i.e., including data frames.
These functions gain a new control option "niceNames" (see
.deparseOpts()), which when set (as by default) also uses the
(tag = value) syntax for atomic vectors. On the other hand,
without deparse options "showAttributes" and "niceNames", names
are no longer shown also for lists. as.character(list(...
2018 Apr 23
0
R 3.5.0 is released
...i.e., can be recreated identically from deparsed code.
dput(), deparse() and dump() now print the names() information
only once, using the more readable (tag = value) syntax, notably
for list()s, i.e., including data frames.
These functions gain a new control option "niceNames" (see
.deparseOpts()), which when set (as by default) also uses the
(tag = value) syntax for atomic vectors. On the other hand,
without deparse options "showAttributes" and "niceNames", names
are no longer shown also for lists. as.character(list(...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version"
This series removes some of the really old deadwood from the tools build
and makes some other things which are on their way out configurable at
build time with a default depending on how far down the slope I judge
them to be.
* nuke in tree copy of libaio
* nuke obsolete tools: xsview, miniterm, lomount & sv
*