Questions tagged [par]

This tag has no Wiki Excerpt yet!

par is a paragraph reformatter, vaguely similar to fmt, but better. It can format, justify, align, slice and dice using a bewildering array of options. See http://www.nicemice.net/par/

par is a filter which copies its input to its output, changing all white characters (except newlines) to spaces, and reformatting each paragraph. Paragraphs are separated by protected, blank, and bodiless lines (see the Terminology section for definitions), and optionally delimited by indentation (see the d option in the Options section). Each output paragraph is generated from the corresponding input paragraph as follows:

  1. An optional prefix and/or suffix is removed from each input line.
  2. The remainder is divided into words (separated by spaces).
  3. The words are joined into lines to make an eye-pleasing paragraph.
  4. The prefixes and suffixes are reattached.

If there are suffixes, spaces are inserted before them so that they all end in the same column.

In scientific software for statistical computing and graphics, par is a use function to set or query graphical parameters. Many parameters can also be passed as arguments to plotting functions. See ?par.

213 questions
4
votes
1 answer

Run time error in perl

I have made a standalone exe file by packaging a perl file using PAR::Packager. The file works perfectly in my system, but it throws an error. if i used it in another system which have windows xp as OS. The locale codeset (cp936) isn't one that perl…
Balakumar
  • 650
  • 1
  • 12
  • 29
4
votes
1 answer

How do I detect if a program is running within a PAR archive?

I'm working on a large Perl application which gets bundled with PAR, along with a bunch of support files. When the app is running within PAR, I can use PAR::read_file to get at these various files inside the archive. However, while I'm developing, I…
friedo
  • 65,762
  • 16
  • 114
  • 184
4
votes
1 answer

R smartly deciding about par-mfrow in a function

I want to print output, according to the amount of variables that have more than 10 unique values in a data-frame. This could be any number of variables. I am looking for a way to implement this as to set the plot window to be perfect for the amount…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
4
votes
1 answer

Named character vectors and par() in R plots

I'm trying to use a named character vector to hold a custom color palette, so I can say, e.g. palette['red'] instead of repeating "#dc322f" all over the place. However, I don't seem to be able to use an element of that vector as an argument to par()…
3
votes
1 answer

How to unbleach this perl file?

How do I unbleach a Perl file that's been bleached with PAR::Packer::Bleach? The algorithm of bleaching is described in this Stack Overflow answer, however I am unable to make a working script for unbleaching/deobfuscation. Has anybody done…
sraka1
  • 55
  • 4
3
votes
1 answer

What is the relationship between Perl PAR::Packer's pp, par.pl, parl scripts?

I'm trying to learn PAR and PAR::Packer. I understand that PAR is a module which allows loading modules from .par archives. I don't understand the three scripts pp, par.pl, parl in PAR::Packer. (Note: in this question parl includes parl.exe for…
user1481
  • 849
  • 1
  • 5
  • 15
3
votes
1 answer

Perl PP is searching the output script inside /script/

I have a really strange problem but only when running Ubuntu ( on CentOS evertyhing is working ). I've made a script in Perl and used the Mail::IMAPClient module. When I run the following command: pp -o myapp perlscript.pl Everything is working,…
Ricky Levi
  • 7,298
  • 1
  • 57
  • 65
3
votes
1 answer

How to add points to two plots parallelly ? (in R)

I am looking for ways to add points to three different plots in parallel. I have three scatter plots named s3d1, s3d2 and s3d3 in a single window layout(matrix(c(1,2,1,3),2, 2, byrow =…
384X21
  • 6,553
  • 3
  • 17
  • 17
3
votes
1 answer

Perl executable crashes even though file is not missing

I get the following error: Can't load '...\AppData\Local\Temp\par-6e72616f\cache-20221205133501\5743946b.xs.dll' for module GD: load_file: The specified module could not be found at /DynaLoader.pm line 193. at…
Jeff
  • 31
  • 3
3
votes
1 answer

How to pack perl script with all dependencies from Windows to run on linux machine?

I have used pp PAR::Packer to build a standalone exe file to run on a Windows machine. Can somebody explain how to build a Perl script with all the dependent packages from this Windows machine to create a standalone file to be run on a Linux…
3
votes
1 answer

R Histogram and Boxplot alignment

I have the problem that i want to put barplot under a histogram where the barplot of a value is exactly under the certain value of the histogram. Unfortunately the scaling of the histogram is not the same as in the barplot and additionally there is…
Wolv
  • 33
  • 3
3
votes
1 answer

Why won't cpanm install dependencies?

I'm trying to install PAR from cpanm like so: cpanm App::Packer::PAR, but it's giving me this error: skipping R/RJ/RJBS/perl-5.22.0.tar.bz2 ! Installing the dependencies failed: Module ExtUtils::Embed is not installed ! Bailing out the installation…
bsmedley
  • 33
  • 1
  • 4
3
votes
3 answers

R | combine plots that use par(mfrow = ...) internally

Take plot.acf as an example. Both acf and pacf call this function internally. How can i plot them side by side? Example: TS <- ts.union(mdeaths, fdeaths) acf(TS) pacf(TS) I tried to use par(mfrow = c(2,4)) and layout to combine them, but…
Rentrop
  • 20,979
  • 10
  • 72
  • 100
3
votes
1 answer

Controlling inner figure margins in R

I must have changed something in my par() settings, but I cannot recall what. It looks like my inner figure margins must have changed somewhere. This is obvious whenever I add lines, using the lines(), abline(), or points() functions during…
KoenVdB
  • 293
  • 2
  • 12
3
votes
2 answers

Fill up white space in R Plots

How does one get rid of white space when plotting in R as in the example below? I would like to do this because when I want to multiple plots on a page it looks terrible. I'm using the par function in the following…
NewNameStat
  • 2,474
  • 1
  • 19
  • 26
1 2
3
14 15