https://github.com/cran/fda
Tip revision: aac3e3f7207f4732067b6e1d1b735f5d7855664f authored by J. O. Ramsay on 06 July 2007, 00:00:00 UTC
version 1.2.4
version 1.2.4
Tip revision: aac3e3f
add-links.rb
Dir["*/*.[rR]d"].each do |path|
puts path
file = File.new(path, "r")
update = file.read.gsub(/\\seealso\{(.*?)\}/smi) do
"\\seealso{\n" +
$1.gsub("\n","").split(/[\, ]+/).map{|f| "\\code{\\link{#{f}}}"}.join(", \n") +
"\n}"
end
file.close
file = File.new(path, "w")
file.write update
file.close
end